Skip to main content
Inspiring
May 7, 2013
Question

IOS Security Msg On AIR 3.7

  • May 7, 2013
  • 1 reply
  • 750 views

Hi,

I am using the new 3.7 SDK with my mobile Flex application, and have a situation where my externally loaded swf is generating mysterious messages in the debugger console. The mobile app downloads and caches swf files from a server, then loads them on an as needed basis, and unloads them when the Flex View is discarded. The swf files contain no AS3 code, but some of the symbol instances on stage have been assigned names if that matters. When I load these swf files and turn on/off the named symbols on stage by setting their visibility property to true/false, the app spits out these trace messages in the debugger console when I debug on the device:

[trace] IDS_CONSOLE_SANDBOX

[trace] IDS_CONSOLE_SECURITY_CONTEXT

These are listed in the console as trace statements, but I have not coded these anywhere. Everything works as expected and there are no errors in the app. So my question is, what could be causing this, and could these messages cause an App Store rejection?

thx

This topic has been closed for replies.

1 reply

Pahup
Adobe Employee
Adobe Employee
May 8, 2013

Hi Keith,

Looks like your application is trying to violate some security rules of swf sandboxing, the traces meant that it tried to access incompatbile context, you should try to find out the cause for this in your application. These traces are thrown by Runtime, but yes, these traces should be more meaniningful, it's a bug in Runtime, we'll investigate it.

This trace shouldn't prevent the app from being approved, but if it does, do let us know. Thanks for reporting it.

-Pahup

leejkAuthor
Inspiring
May 8, 2013

Thanks for the info. I found this which helped provide some more details on the messages: http://www.seatoa.org/2013confspkrpresentations/2013.03.21/CBB%20State%20BBND%20Mapping/Bailey%20White%20Georgia%20SBI%20Seatoa/Prezi.app/Contents/Frameworks/Adobe%20AIR.framework/Versions/1.0/Resources/en.lproj/PlayerUILocalizable.strings

It seems I have a security sandbox violation error at runtime, and it seems there is no way to correctly fix this because of AIR's rule that it cannot load any swf into it's security sandbox. The docs for LoaderContext say: "Content in the air application security sandbox cannot load content from other sandboxes into its SecurityDomain."

It would seem that in my LoaderContext object that I pass to the Loader object to load the external swf that I could set the security domain property to the security domain of the AIR app, but that does not work at all and throws a security error and program halt. So is this a limitation of AIR or is there a correct way to load an external swf and manipulate it's movieclips on stage?