Our flex app is primarily just a portal to our content which is mostly AS2 swfs created in Flash Pro. We're having trouble loading those swfs when we debug locally.
When debugged locally, we get spammed by console messages about Security Errors that look like this:
*** Security Sandbox Violation *** SecurityDomain 'http://www.our-website.com/PAGE_000001.swf' tried to access incompatible context 'file:///path/to/app/app.swf'
The swfs are loaded into our flex app by a mx:SWFLoader. Investigating there, I figured the trustContent property was what we were after, but setting that to true causes Run Time Errors instead of just console spam. I tried using Security.allowDomain in our flex app, and I continue to get the messages as long as the toplevel app is local and the content is not. What am I doing wrong here?
Edit: Neither swf is trying to interact with the other at all. That's the part that's confusing me the most.
If you're concerned with this issue just when you're debugging locally, then try setting your FlashPlayer settings.
As for those incoming SWFs being AVM1 (coded in AS2), using LoaderContext.allowCodeImport wouldn't help you. Because you would use that with the Loader.load() or Loader.loadBytes() which will throw an exception if the incoming SWF is a AVM1.