Quantcast
Channel: Adobe Community: Message List - AIR 3.6 & 3.7 SWF Loading Confusion
Viewing all articles
Browse latest Browse all 24

AIR 3.6 & 3.7 SWF Loading Confusion

$
0
0

Hello,

 

I am developing an application for the desktop and mobile platforms. I am using Flex and FB 4.7. One thing that is very important to me is the ability to load external swf files into the application. I am confused by what designates 'embedded AS code' in the swf file being loaded that will cause an error.

 

Currently, using 3.4 & 3.5 I can load external swf files on IOS that contain AS3 code, although I am not sure why this is because everything in this forum and the blogs state that this is only possible in 3.6+. I can also reload them without issue. In frame 1 of each swf I load, I have this code:

 

import flash.system.Security;

 

if (Security.sandboxType == Security.REMOTE)

{

          Security.allowDomain("*");

}

stop();

 

This code is used because these same swf assets are used on the web in a browser. In eash swf file, it also has a symbol in it's Library which has a AS Linkage name defined. This symbol is used on the stage of the external swf. All of these are created with Flash Pro CS6. So at runtime within my main application I load these and inject event code into the symbol instances on stage, the same symbol that has the AS Linkage in the library of each swf file I load. This works well.

 

So I can load/reload them in my application fine, even though I thought any swf file with AS3 code would not load on IOS. So is there an undocumented guidleine or something on the amount of AS code that can be within a swf file before it will error on IOS when loaded?

 

thx


Viewing all articles
Browse latest Browse all 24

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>