-
1. Re: Play SWF file in Android using Adobe AIR.
Neverbirth May 29, 2014 11:35 PM (in response to Rajangam89)Is it a plain ActionScript3 project? if so, from memory, this should be enough:
var loader:Loader = new Loader();
loader.load(new URLRequest("yourswf.swf"));
addChild(loader);
Of course, you can get more control over the loading process, this may result in error if you paste down the code as is in a class that is not a subclass of DisplayObjectContainer, etc.
-
2. Re: Play SWF file in Android using Adobe AIR.
Rajangam89 May 30, 2014 2:29 AM (in response to Neverbirth)Hi,
Thanks for your quick reply. Its pure ActionScript file and the SWF file has .js and .xml supporting files. I heard .js file only runs in the web browser. Is it run in Android?
Can this SWF file runs on Android 4.0 and above.
-
3. Re: Play SWF file in Android using Adobe AIR.
Neverbirth May 30, 2014 3:48 AM (in response to Rajangam89)I don't recall if Flash Professional or Flash Builder generate any XML file. If there is any file that your external .swf file really needs to work, just make sure that .swf file access to it, so if your .swf is packaged inside the final APK binary, package the supporting files as well.

