actionscript-3flashairflash-builder

Convert Adobe Flash Builder game to Air?


I already made a game with flash builder 4, and I want to provide an easy download for people that would rather play offline. Thing is, i use a folder whole structure to dynamically load content per level. Folder structure looks like this, not that it matters that much:

Game folder

How should I go to distribute this? Should I just resort to make a zip file for the flash game and assume people know how to extract and open the swf? Is there any other way to port easily as an executable? Perhaps Adobe Air (not sure if this works though)?

Thanks, and please help!


Solution

  • enter image description hereYou can do this with Adobe AIR. It allows you to include folders in the install directory of the project and load them at runtime, all with a single install.

    Update in response to comments

    To convert a Flex project to an AIR project, you just need to change the project type in FlashBuilder or FlashDevelop to export to AIR. There may be a few specific API changes when you do this, but 99% of your code will copy over directly. Usually, there are no problems converting a web app to AIR, because AIR is a more permissive sandbox than the web. Moving from AIR to the web is not always possible, as AIR supports many features not enabled in the browser.

    Then you have to select the appropriate export options for AIR to include your external resources folder.