When creating Adobe AIR applications for Android mobile devices, it is now possible to bundle the AIR runtime into the .apk file so that users do not need to download and install the AIR runtime manually. This is a similar approach to what Adobe have taken with AIR for iOS, as applications do not need the user to install AIR on the device beforehand for applications to run. The downside to this approach is that applications suffer a much larger file size and will not receive any updates to AIR unless the application itself receives an update.
Using Flash Builder 4.6, exporting applications using the captive runtime is easy. When exporting your application for distribution, click ‘Project > Export Release Build‘ .
Click next, and then make sure you have ‘Export Application with Captive Runtime’ selected and then hit finish. Flash Builder should now export an .apk file into your bin-release folder with the bundled AIR runtime.
FDT is a great tool for developing Actionscript. However, getting a version of FDT that works with AS2 can be quite tricky. There are not any links to directly download it from the Powerflasher FDT website. At the time of writing, they are promoting and exposing urls to download FDT5 only, with no download mirrors for previous versions. I dont think that FDT5 can build AS2 projects, so you need to install version 3.5.
To install FDT 3.5 can be a bit tricky if you do not know where to look. In Eclipse, click help > install new software.
Then you need to search for the location ‘http://fdt.powerflasher.com/update/’ FDT3.5 can be found here and installed directly into Eclipse, allowing you to work with AS2 applications again.
Recently I received a shiny new Mac which I have been setting up for development. Im using the open source MTASC compiler for some projects which is used for compilation of the SWF files. However after checking out the repository onto my new machine I received this error when running the compiler either from Terminal or from within the ANT script used to build the project:
/Users/craigbeswetherick/Grindhead/clientname/projectname/build.xml:31: Execute failed: java.io.IOException: Cannot run program "../tools/mtasc-1.12-osx/mtasc": error=13, Permission denied
To fix this problem, use Terminal and use the following command to change the permissions granted to MTASC. Type chmod 777 specifying the path to the file. Alternatively you can use the cd command to navigate to the folder of the application and then run chmod 777
You should now be able to compile SWF’s using MTASC again.