• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Play SWF file in Android using Adobe AIR.

New Here ,
May 29, 2014 May 29, 2014

Copy link to clipboard

Copied

Hi All,

     I have a group of SWF files. I want to play these files in my Android Application using Adobe AIR. Is it possible? If yes, can anyone tell me how to do this.

TOPICS
Air beta

Views

13.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 29, 2014 May 29, 2014

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 30, 2014 May 30, 2014

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 30, 2014 May 30, 2014

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 01, 2015 Dec 01, 2015

Copy link to clipboard

Copied

LATEST

I find two methods to from this guide on how to easily play SWF on Android

Approach One: Top 2 SWF Players on Android (Free of Charge)

Approach Two: Convert SWF to Android video format with iDealshare VideoGo

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines