Flex3 should be fine. Adobelabs has a project like this: FlexBuilder3forLinux. I didn't try it. My environment is Ubuntu10.04Flex4, which is not officially available in Linux. Theoretically, we can port FlashBuilder in Windows to Linux. Since Adobe does not want to do this, eshangrao gave you a 1. First, it rushed to the eclipse official release of an eclipse-j
Flex 3 should also work. Adobe labs has a project like this: Flex Builder 3 for Linux, no trial.
My environment is Ubuntu 10.04
Flex 4 has no official Linux version. Theoretically, Flash Builder under Window can be transplanted to Linux. Since Adobe does not want to do this, eshangrao gives you
1. First, we rushed to the eclipseofficial website and decompressed a eclipse-jee-helios-linux-gtk.tar.gz file.
2. An entire jdk-6u10-linux-i586.bin
3. Install the jdk configuration environment sudo gedit/etc/profile
Add
JAVA_HOME =/home/liucf/dev/jdk1.6.0 _ 10
Export JRE_HOME =/home/liucf/dev/jdk1.6.0 _ 10/jre
Export CLASSPATH =.: $ JAVA_HOME/lib: $ JRE_HOME/lib: $ CLASSPATH
Export PATH = $ JAVA_HOME/bin: $ JRE_HOME/bin: $ PATH
Path note
After source/etc/profile, the java-version displays the version information.
My dishes. I don't know how to make the configuration file take effect. Just restart the computer.
4. Download FB4Linuxaa, FB4Linuxab, FB4Linuxac, FB4Linuxad, FB4Linuxae, and FB4Linuxaf in the same folder, and then run: cat FB4Linux *> FB4Linux.tar.bz2
Unzip fb4linux.tar.bz2 to the eclipse dropins folder.
5. Restart eclipse to take effect. Problem: no preview view. You cannot double-click a breakpoint, but you can right-click to add a breakpoint (unknown reason)
6. For the debugging environment firefox or chrome, refer to here. Decompress libflashplayer. so
6.1 firefox
Tar xvf install_flash_player_10_linux.tar.gz
Cd install_flash_player_10_linux
Sudo cp libflashplayer. so/usr/lib/mozilla/plugins/
6.2 chrome
Kill libgcflashplayer. so under/opt/google/chrome. Rename libflashplayer. so to libgcflashplayer. so copy to/opt/google/chrome/
7. AIR Support
If you need to run and debug the AIR project, the following error occurs:
! Apollo launchdelegate. dirDoesNotExist!
The reason is that the FlexSDK downloaded from opensource.adobe.com does not contain the Linux compiler and must use the air sdk of the Linux version.
Download the following link based on your needs and the installed AIR runtime version:
Air sdk 2
Decompress the downloaded content and overwrite it to your Flex SDKS folder.
In addition, AIR Runtime should be installed
8. debugging may occur.
The connection to file: // home/liucf/dev/workspace/test/bin-debug/framework_4.0.0.14159.swf has been stopped-the file is not allowed: /// home/liucf/dev/workspace/test/bin-debug/test.swf
SecurityError: Error #2148: SWF file: // home/liucf/dev/workspace/test/bin-debug/test.swf: /// home/liucf/dev/workspace/test/bin-debug/framework_4.0.0.14159.swf. Only the SWF files of the file system and trusted local SWF files can access local resources.
At flash.net: URLStream/load ()
At flash.net: URLLoader/load ()
At mx. core: CrossDomainRSLItem/load () [E: \ dev \ 4.0.0 \ frameworks \ projects \ framework \ src \ mx \ core \ CrossDomainRSLItem. as: 240]
At mx. core: RSLListLoader/loadNext () [E: \ dev \ 4.0.0 \ frameworks \ projects \ framework \ src \ mx \ core \ RSLListLoader. as: 184]
At mx. core: RSLListLoader/load () [E: \ dev \ 4.0.0 \ frameworks \ projects \ framework \ src \ mx \ core \ RSLListLoader. as: 156]
At mx. preloaders: Preloader/initialize () [E: \ dev \ 4.0.0 \ frameworks \ projects \ framework \ src \ mx \ preloaders \ Preloader. as: 279]
At mx. managers :: SystemManager/http://www.adobe.com/2006/flex/mx/internal::initialize () [E: \ dev \ 4.0.0 \ frameworks \ projects \ framework \ src \ mx \ managers \ SystemManager. as: 1925]
Rsl problems .. Change the project construction to non-rsl.
Alternatively, right-click the flex project and choose properties> ActionscriptCompiler> Additional compiler arguments.
Add "-use-network = false"
The fb4linux project also has a solution: try to add the eclipse workspace path ~ /. Macromedia/Flash_Player/# Security/FlashPlayerTrust/flexbuilder_plugin.cfg: add your project path to the flexbuilder_plugin.cfg file, for example, test project/home/liucf/dev/workspace/test.