Project

lfd

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
LFD, which stands for "Linux Flash Develop", will help you develop Flash and Flex applications on Linux.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

~> 1.2
>= 0
 Project Readme

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

  1. official support has been dropped on Linux for a long time. AIR and Flash Builder are not available on Linux.
  2. you must write many lines of command to compile your code into a swf file
  3. '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.

Usage

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

Installation

System Requirements

  1. ruby 1.9.2+

    you can install ruby1.9.2 with this commands on unbuntu:

     sudo apt-get install ruby1.9.1
    

    or use rvm to install ruby

  2. Flex SDK

    you can download Flex SDK from Adobe, version 4.5+ is suggested because I havn't test many versions of SDK.

  3. Standalone Flash Player

    you can download it from Adobe. Make sure to use the latest debugger version.

Install LFD

gem install lfd

Configuration

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