I’ve been working on a drawing/filter tool in Flash and here are some preliminary test results:
Fire up a terminal:
- cd ~/Library/SDKs
- git clone http://github.com/robertpenner/as3-signals.git
You can find the above url on the as3-signals homepage on github. My personal pref is to put 3rd party libraries under ~/Library/SDKs
If you look inside the as3-signals dir, there is a build.xml file which requires a FLEX_HOME variable to be set. So, I downloaded the Flex 4 SDK and dropped it under /Developer/SDKs/flex_sdk_4. In the terminal, we need to set the env variable FLEX_HOME. First, lets check if you have an existing one defined. In the shell, type
You should see a list of defined variables. If you need to remove an existing FLEX_HOME, you can do so by typing
- export -n FLEX_HOME
Otherwise, you can add a new FLEX_HOME by typing:
- export FLEX_HOME
If you type env again FLEX_HOME is now added to the list. Now we can build as3-signals.
- cd ~/Library/SDKs/as3-signals/
Ant looks for a build.xml by default. Upon a successful build you’ll find a .swc in the bin folder.
Note: Setting FLEX_HOME this way will only last for 1 terminal session. If you’d like a more permanent solution, see: http://mactip.blogspot.com/2004/04/setting-environment-variables.html