I am trying to load a swf that is on my local file system using an AIR application. The swf I am loading has the code Security.allowDomain("*") in it's constructor. I am getting the following runtime error when I load it.
SecurityError: Error #3207: Application-sandbox content cannot access this feature.
Is there anyway to load this file without recompiling it?
As you can see Security.allowDomain() is not permitted in the AIR application sandbox. This is because we want to prevent non-application content (possibly from unsafe sources) to access AIR APIs (such as filesystem reading). However, you can cross-script to content from other domains using the sandbox bridge. This lets non-application content access specific methods and properties in your application (and vice versa). For more information, see the following: