Resources for Compiling ActionScript 3 and MXML from the command line
In this post, I am going to provide all of the links you need to get started with compiling ActionScript 3 and Flex 2 / mxml from the command line (on Mac, Windows and Linux). I have had to send this info out in about 3 different emails today, so I figured I would post it here to get everything in one place.
Remember that both ActionScript and mxml / Flex files are text based, so you can use any editor that you want, and with mxmlc compile on virtually any system that you want to (although the alpha is currently only officially supported on Windows).
First of all, the command line compiler for Flex 2 and ActionScript 3 is called mxmlc. An alpha version is currently available as part of the Flex Builder 2 alpha install.
You can find information on how to get the compiler, and how to set it up here:
http://labs.macromedia.com/wiki/index.php/Flex_Framework:tutorials:compiling_mxmlc
You can find information on compiling on non-Windows platforms here:
Compiling on Mac and Linux
http://labs.macromedia.com/wiki/index.php/Flex_Framework:tutorials:mac_development
and here:
http://weblogs.macromedia.com/mesh/archives/2005/12/compiling_actio.cfm
You can find a listing of command line options for MXMLC here:
http://livedocs.macromedia.com/labs/1/flex/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001191.html
Once you get everything setup, then check out the Labs wiki, for tons of ActionScript and Flex info and examples.
Post anything that I missed in the comments.






Thanks for the links. Do you know if there is an option to specify a directory for output? I don’t see such an option listed in -help, but wondering if it is missed out.
haridsv
18 Jan 06 at 6:25 pm
There is current not such an option. You could add it to the script though.
I have put in a ECR (request) to have this added the mxmlc.
mike chambers
mesh@adobe.com
mike chambers
18 Jan 06 at 6:52 pm