原文地址:http://www.brighthub.com/hubfolio/matthew-casperson/articles/78818.aspx
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, which is the version of Eclipse that is available in the Ubuntu software repositories at the time of writing.
Step 1
You will need to download the 4 files FB4Linuxaa , FB4Linuxab , FB4Linuxac and FB4Linuxad . When recombined using the command cat FB4Linux* >FB4Linux.tar.bz2 you end up with a standard tar/bz2 archive.
Step 2
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:
- com.adobe.coldfusion.rds.client_1.0.266425.jar
- javax.wsdl_1.6.2.v200806030405.jar
- org.apache.commons.lang_2.3.0.v200803061910.jar
- org.apache.xerces_2.8.0.v200803070308.jar
- org.apache.xml.resolver_1.1.0.v200806030311.jar
Step 3
Extract the FB4Linux.tar.bz2 file you created in step 1 to a convenient location.
Step 4
In Eclipse select Window->Preferences->General->Capabilities and make sure that the Classic Update option is checked.
Step 5
Now click Help->Software Updates->Find and Install .
Step 6
Select Search for new features to install and click Next .
Step 7
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).
Step 8
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 .
Step 9
Accept the terms and click the Next button.
Step 10
Click the Finish button to complete the install.
Step 11
Click Yes to restart Eclipse.
Step 12
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.
Step 13
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.
Step 14
Congratulations. You should now have a fully functional Flash development environment in Linux!
Read more: http://www.brighthub.com/hubfolio/matthew-casperson/articles/78818.aspx#ixzz13NBMGkds