This content has been marked as final. Show 7 replies
Could you please provide a little more information about what's going on with your app when this occurs?
I just debug the app, and thats the first thing that happens. Its a drag and drop application made in Flash.
The application works, however, I can't get a LocalConnection between a dropped in AS2 file. I'm thinking it has to do with the security model, since it works if I load it directly relative to the application. However, if I drop it in, it won't establish the connection. I don't know if this has something to do with it or not. Out of all the applications I've built, I've never gotten this error security error before :)
Ah - LocalConnection. You should look at LocalConnect.allowDomain in the Language Reference ( http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/)
The app:/ sandbox is different than the file:// sandbox.
I, too, am seeing this error message -> "tried to access incompatible context ' http://adobe.com/apollo'". Through testing, I have discovered that, in my case, what seems to be triggering the error is a standard Flash component ComboBox. If I use a ComboBox, whether dragged to the stage from the Component library or created at runtime with "new", I get the error.
Any ideas what the problem may be?
I'd need a little more info again. Is the ComboBox in your app.swf? Is it in a SWF that's loaded from a remote site? Is the error appearing when you do something with the ComboBox, or when the swf is instantiated?
Hello, Erica and thank you for the followup.
To test, I had stripped down my app to consist of just one FLA and one script file as the document class for that FLA.
If I drag a ComboBox to the stage or create a ComboBox using 'new', the error is reported. The FLA is empty except for that ComboBox (if dragged in) and the script has only an empty constructor except for the call to 'new ComboBox()' (if created on the fly). The error is reported twice if I drag in or create-on-the-fly a second ComboBox so it definitely seems to be originating from that component.
This isn't a big issue as the ComboBox seems to work properly but simply reports the error.
Perhaps some files were not properly overwritten when I installed AIR into Flash?
Thanks again for your attention!