Skip navigation
LilGames
Currently Being Moderated

How do you manage different target platforms from one FLA?

Mar 6, 2013 7:28 PM

Tags: #publishing #android #mobile #ios #cs6 #games #apps #actionscript_3 #platforms #flash_cs6

I am in the throes of trying to publish an app for both iOS and Android mobile devices and am having trouble finding some guides related to how to most easily target these two platforms without duplicating code or FLA files.

 

So far, I have one single code base that checks CONFIG::DEVICE constant to know what platform dependant classes it should or shouldn't use, but as for the FLA, I have two copies of this same FLA with different publishing settings (one set for iOS and one set for Android, and each with the appropriate difference set in the config constant). Needless to say, managing two FLAs with nearly identical content is a pain in the butt.

 

How am I supposed to do it (using Flash Professional CS6)? I was considering using "Profiles" (upper left corner of Publish Settings panel) but in the past whenever I've relied on Profiles it has been unrealiable. For example, the SWF file name doesn't change, making it a pain to try and make a seperate SWF for iOS and one for Android. If I just change the target platform in the pulldown mennu for that, will it remember the old settings when I come back to a previous selection? (ie: AIR 3.6 for ios, vs AIR 3.6 for Android, etc)

 

Suggestions?  I couldn't find anything by Googling.

 
Replies
  • Currently Being Moderated
    Mar 6, 2013 11:46 PM   in reply to LilGames

    If you absolutely must have one FLA only and are only asking how you can save the time of always switching between the publishing options for ios/android then you could write yourself a script with jsfl that automates that task for you.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 11, 2013 12:55 AM   in reply to LilGames

    Here is simple example you can use to build your own different xml-publish profiles.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points