How to set up a complete flash flex or air development environment on linux
How to set up a complete flash/flex/air development environment on Scientific Linux, using FDT, Flex SDK 4.0.0 + Air
- Download the Flex SDK and Air SDK:
mkdir ~/sdks cd ~/sdks/ wget http://fpdownload.adobe.com/pub/flex/sdk/builds/flex4/flex_sdk_4.0.0.14159.zip wget http://airdownload.adobe.com/air/lin/download/2.6/AdobeAIRSDK.tbz2
mkdir ~/sdks cd ~/sdks/ wget http://fpdownload.adobe.com/pub/flex/sdk/builds/flex4/flex_sdk_4.0.0.14159.zip wget http://airdownload.adobe.com/air/lin/download/2.6/AdobeAIRSDK.tbz2
- Extract the Flex SDK then merge the contents of the the Air SDK into the unzipped flex sdk::
Test your Air SDK
- Download FDT from the powerflasher website:
http://www.fdt.powerflasher.com/developer-tools/fdt/download/ - Run FDT, right click on your Flash Explorer>New>New Flash Project
- Select Desktop>AS3 AIR

- Add some test code to Main.as, eg.:
package { import flash.display.Sprite; public class Main extends Sprite { public function Main() { graphics.beginFill(0x334455); graphics.drawCircle(100, 100, 100); } } }
package { import flash.display.Sprite; public class Main extends Sprite { public function Main() { graphics.beginFill(0x334455); graphics.drawCircle(100, 100, 100); } } } - Click on the debug icon to compile the air app:

- If it’s the first time you are compiling the app, you might need to set up a Run Configuration:
In the Run Configurations window Double click on FDT SWF Application:

Your Project, Main Class and Output should be all selected. If not, click on browse and select src/Main.as. - You will probably get an error, complaining about the adl:
.../flex/bin/adl: cannot execute binary file

This is because the adl that comes with the default 4.0.0 SDK is built for Mac and not Linux. - To fix it, you’ll need to compile it with the SDK you downloaded earlier.
Right click on your project, go to Properties>FDT COmpiler>Configure:

- Click Add, navigate to the sdks folder (~/Documents/sdks/flex_sdk_4.0.0_plus_air/)

- Try compiling the app again.
You should see the compiled air app:

One Response to How to set up a complete flash flex or air development environment on linux
Leave a Reply Cancel reply
Tags
3D Printing air apparat as3 colours cpd datagram FDT flash flash builder flex FlexCPD FlexMetrics FlexPMD flex skinning FlexUnit git grails groovy hudson jenkins joomla Launchpad linux mac maven Maya netfabb os x lion parsley performance pmd replicatorg reprap scala scien scientific linux sonar sts subclipse svn udp ultimakerBlogroll


Thanks, good guide for Flash/AIR newcomers…