ActionScript compiling to SWF using ANT and as2ant
I have been starting work on a project involving compiling multiple ActionScript classes. To help in the development process and shorten the time that the Flash Developers take to compile multiple classes into a single SWF movie I have researched into using ANT to compile the ActionScript classes. Using an Open Source Flash compiler (MTASC) and a As2ant (allowing us to create MTASC ant tasks) I have produced the following build.xml.
The build.xml expects that the project is setup with the folder:
- build.xml
- lib/as2ant.jar - required by ANT, available in the as2ant download package
- src/**/*.as - All your class/classes (including subdirectories)
and creates the output to
- build/*.swf
Have a look at the build.xml here.
You need to simply change you project name (for the output SWF) and the output settings, such as background colour, width/height params, main class and the like.
For any changes please email them to cameronmanderson@gmail.com.






Once you have set up your build.xml in your project, you will be able to use this in Eclipse IDE.
Comment by Cameron Manderson — July 5, 2006 @ 11:37 pm
For those interested in getting started with integrating MTASC for Flash Development you can follow this tutorial here:
http://www.pasz.com/articles/InstallMTASC/default.html
Comment by Cameron Manderson — August 18, 2006 @ 10:12 am