Linux Flash Develp
LFD, which stands for "Linux Flash Develop", will help you develop Flash and Flex applications on Linux, especially Ubuntu. Later version of LFD can also be run on Mac with Ruby installed. One may use LFD instead of Flash Builder for firendly command line usage.
Pain of Flash Developing On Linux
- official support has been dropped on Linux for a long time. AIR and Flash Builder are not available on Linux.
- you must write many lines of command to compile your code into a swf file
- 'trace' do not output in standard output (such as terminal) in new version of standalone flash player
I don't want to switch from my workspace on Linux to Windows to do some little developing of flash. And I prefer command line tools and vim over Flash Builder.
So I wrote this little gem to make it easy to develop flash applications in Linux. LFD is your firend if you are suffering from the pain as well as me.
lfd env # check the develop environment lfd init # init your project home, creating file: asproj.info, making dirs: bin/ src/ lib/ etc. lfd build # compile your appliation (configed in asproj.info) with a binary swf file output lfd run # open swf file with standalone Adobe flash player. lfd test # equals "lfd build && lfd run" lfd clean # delete project info file and folders created by LFD. will not delete non-empty folder
you can install ruby1.9.2 with this commands on unbuntu:
sudo apt-get install ruby1.9.1
or use rvm to install ruby
you can download Flex SDK from Adobe, version 4.5+ is suggested because I havn't test many versions of SDK.
Standalone Flash Player
you can download it from Adobe. Make sure to use the latest debugger version.
gem install lfd
LFD depends on Flex SDK and Flash Player heavily. Please config them in your bash config (~/.bashrc commonly) to make sure Flex SDK is executable in your shell. To check which flex sdk is choosen, just run
lfd env. Here's what it outputs in my laptop:
$ lfd env Flex sdk - mxmlc: ✗ Flex sdk - compc: ✗ Flash player: ✗
You may have multiples versions of Flex SDKs installed, and choose one for lfd, by setting the MXMLC/COMPC/FLASH_PLAYER variables, e.g:
MXMLC="/path/to/flex_sdk/bin/mxmlc" \ FLASH_PLAYER="/path/to/flashplayer_standalone" \ lfd test