Jump to content
Search Community

Creating AIR file from Flash CS5 Sandbox error

gerrydesign test
Moderator Tag

Recommended Posts

I'm have no experience with Adobe Air and I might have a project coming-up that involves AIR. When I publish one of my existing into a SWF file, I don't get an error, But when I publish/test movie it in AIR, I get the error below. I looked around cross-domain to address issue but I'm still not getting any luck. Just wondering if you can point me to what to look for to address this is.

 

TIA,

 

Gerry

 

Time for me to renew my green status :)

 

 

[sWF] main.swf - 265985 bytes after decompression

SecurityError: Error #3207: Application-sandbox content cannot access this feature.

at flash.system::Security$/allowDomain()

at com.greensock.loading.core::DisplayObjectLoader/_load()[/users/gerryyumul/Documents/My Projects/axiate2010/project/com/greensock/loading/core/DisplayObjectLoader.as]

at com.greensock.loading.core::LoaderCore/load()[/users/gerryyumul/Documents/My Projects/axiate2010/project/com/greensock/loading/core/LoaderCore.as]

at com.greensock.loading::LoaderMax/_loadNext()[/users/gerryyumul/Documents/My Projects/axiate2010/project/com/greensock/loading/LoaderMax.as]

at com.greensock.loading::LoaderMax/_load()[/users/gerryyumul/Documents/My Projects/axiate2010/project/com/greensock/loading/LoaderMax.as]

at com.greensock.loading.core::LoaderCore/load()[/users/gerryyumul/Documents/My Projects/axiate2010/project/com/greensock/loading/core/LoaderCore.as]

at com.axiate::DeviceUI()[/users/gerryyumul/Documents/My Projects/axiate2010/project/com/axiate/DeviceUI.as]

at main()[/users/gerryyumul/Documents/My Projects/axiate2010/project/main.as]

[unloadSWF] main.swf

Test Movie terminated.

Link to comment
Share on other sites

Hmm...are you using a really old version of LoaderMax?

 

If you look at line 90 of DisplayObjectLoader (which is used for SWFLoader and ImageLoader), you'll see this:

 

if (Capabilities.playerType != "Desktop") { //AIR apps will choke on Security.allowDomain()
Security.allowDomain(_url); 
}

 

For some reason, Adobe decided to make AIR apps choke on Security.allowDomain() (thanks Adobe!) but that code should only run when you're not using AIR (hence the conditional logic above). Please make sure you've got the latest version of the LoaderMax classes and if you're still having trouble, please shoot me an example FLA that I can publish to see the error.

Link to comment
Share on other sites

  • 4 months later...

Sorry to dig this up but I'm also getting this problem, using the latest and greatest version of LoaderMax.

 

It occurs when I try and init a SWFLoader in AIR, works fine in FP10.

 

trace(Capabilities.playerType) outputs 'Desktop'.

 

Any ideas?

 

Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...