This content has been marked as final. Show 3 replies
No, this is not possible. If a loaded SWF could gain access to the stage, it has access to your entire application.
Depending on your application design, it may be possible to load the SWF in an HTML page in an HTMLLoader control. A SWF loaded in HTML gets it's own independent stage. Loading SWFs in HTML does have some limitations, so this won't work for all apps. It would be better to find a another way to listen for the events you need.
But if I load the swf from the applicationDirectory is should have access to the stage according to the Air Security Model.
I've had some problem loading a swf file into an air application a few months ago. This was due to the fact that the external swf application was not loaded into the air application security context. I don't know if this can help, but to fix this problem I used the loadBytes method of the Loader object in place of the load method. You can take a look at this article of Ted Patrick from Adobe about this subject : http://www.onflex.org/ted/2008/01/loaderload-vs-loaderloadbytes.php