Flash development in Linux is often left to a generic text editor used with the free Flex SDK. It is certainly possible to code this way, but you do lose out on a lot of the functionality of a more specific IDE. The FB4Linux project provides a plugin for Eclipse that provides a similar environment to FlashBuilder 4. The only downside is that the installation instructions gloss over a few of the details required to get the plugin installed in Eclipse 3.5.2 (Galieo) or the most recent 3.6 (Helios), which is the version of Eclipse that is available in the Ubuntu software repositories at the time of writing.
Download and extract the jar files from this file here into the /usr/lib/eclipse/plugins directory. These plugins include Apache Commons Lang, Apache Xerces, Adobe RDC Client, and any other supporting plugins that they require. The actual file names are:
Extract the FB4Linux.tar.bz2 file you created in step 1 to a convenient location.
In Eclipse select Window->Preferences->General->Capabilities and make sure that the Classic Update option is checked.
Now click Help->Software Updates->Find and Install.
Select Search for new features to install and click Next.
Click the New Local Site button, and type in the location where you extracted FB4Linux in step 3 (you will need to specify the eclipse subdirectory to be specific).
With the Adobe Flash Builder 4 site selected, click the Finish button. You will be asked which features to install. Tick the Adobe Flash Builder 4 feature and click Next.
Accept the terms and click the Next button.
Click the Finish button to complete the install.
Click Yes to restart Eclipse.
You will need to download and extract a copy of the Flex SDK from here. You can set Ecli to use the new SDK by right clicking on your Flash project and selecting Properties. Select the ActionScript Compiler option.
You can then click the Add button to add the location of the Flex SDK you just extracted.
Finally you will need to configure the external tools to run your Flash application. Click on the Run toolbar menu itme and select the External Tools Configuration option.
Right click on the Program option and select the New option. Then fill out the Location and Arguments settings to point to your Flash standalone player (which you can download here) and SWF file respectively.
Congratulations. You should now have a fully functional Flash development environment in Linux!
Step 15 – A breathe of “AIR”
(some people suggest using Eclipse Galileo for better AIR development compatibility)
If you are going to build AIR applications you’ll encounter two errors:
1st – the create new Flex project wizard will never complete (finish the dialog window)
This happens because there is a missing file called “descriptor-template.xml” that is needed for flex applications. You can correct it with the following trcik but will generate the second error whatsoever, that you will have to correct later.
locate the file (it is bundled with flex SDK)
pedro@io:~$ locate descriptor-template.xml
Copy it to the eclipse folder that seems to be demanding it (I always eclipse from command line so I can look ate runtime exceptions and errors)
pedro@io:~$ cp /home/pedro/Apps/flex_sdk_188.8.131.5276_mpl/templates/descriptor-template.xml /home/pedro/Apps/flex_sdk_184.108.40.20676_mpl/templates/air/
Now the wizard completes, but when you compile and run the debug program it will generate a “ApolloLaunchDelegate?.fileDoesNotExist!” error.
2nd How to resolve the “ApolloLaunchDelegate?.fileDoesNotExist!” error:
This is very easy, you simply have to download teh Adobe AIR SDK for linux and compy it to the flex SDK folder (and select “merge” on the copy settings).
Acknowledgements and original post-source
Based on: http://www.brighthub.com/hubfolio/matthew-casperson/articles/78818.aspx and my own changes
Also suggest to read: http://www.len.ro/2011/01/fb4-on-linux/
Many thanks to for Eshangrao developing this eclipse plugin and to Matthew Casperson for the tutorial post.