As3 AIR for android - Sandboxed Application Content ERROR

TARGET:

I am trying to allow external SWF files that interact with each other that are downloaded locally from the device. I need to have access to vars, functions and objects. I got this while downloading swf content from the internet here: as3 downloaded from outside swf from the network to control externally loaded swf from the network

BUT WHEN I GIVE THE USER THE OPTION FOR DOWNLOADING FROM THE DEVICE OR FROM ONLINE ... SWF device files cannot communicate with each other. In particular, the loaded swf cannot receive information from its parent.

Below is the code that works when downloading via the Internet:

var InsideConent:Object = this.parent.parent as Object; //// GIVES ACCESS TO "Content.swf"
var ItWorksNow:Sprite = MovieClip(InsideConent.TWO.content).ChildInTWO;  /// 

The device does not like this code:

Security.allowDomain("*");

. , , APP.

:

SecurityError: # 3207: - .    flash.system:: $/allowDomain()   at Products_fla:: MainTimeline/frame1() .

: -, , AIR FOR ANDROID, ? -

+5
3

, , . , . ( Domain b/c, , .)

try {Security.allowDomain("*");}catch (e) { };

+5

swf , crossdomain xml. - : https://developers.arcgis.com/flex/guide/using-crossdomain-xml.htm

swf , , , .

, ( -, singeltons, . , , .

+1

, swfs AIR, swf , .

0

All Articles