I want to load a flex application in mobile flex application and also i want it to interact with the parent application. Right now I am trying to load the swf with swfLoader in mobile app, but it gives me security error. And also should I want the parent application to be generic in terms of child application...as in down the line if someone wants he can have another child application with same name run.
This is in the main application:
private function connectHandler(event:Event):void {
NativeApplication.nativeApplication.addEventListener(KeyboardEvent.KEY_DOWN, handleKeys, false, 0, true);
mySWFLoader.source="file:///sdcard/Galaxy/Teacher/Shell.swf";
mySWFLoader.visible = true;
mySWFLoader.addEventListener(Event.COMPLETE,swfLoaderHandler);
}