7/02/2009

FlashAntTasks – Compiling Flash Movies With Ant


If you’ve seen Mike Chambers flashcommand implementation you’ll notice that it only works on the mac. We have a lot of people at my office on Windows and I wanted to provide them something that could also work on a Windows computer. Plus I wanted something a little cleaner, easier to learn and a bit more elegant than most of the solutions out there. So I created FlashAntTasks. Its a jar file that you reference in your class file that creates flash tasks that compile separate movies. I’m posting it up on Google code so everyone can enjoy. So enough with the fluff, here’s the details
WINDOWS USERS – you need to pass in flashcommand the flashapp attribute with the uri to your flash.exe like
You can download the code at http://code.google.com/p/flashanttasks/.






simple example build file






















































Web Tier Compiler For Flex

Adobe is releasing a new web tier compiler for Flex on Adobe labs. This allows you to simply copy the Flex files into a directory visible to your server and your app will be compiled automatically when you request the main application file using your web browser. The resulting model feels very similar to working with ASP, JSP, PHP, or CF.
It is available for both Apache and IIS, and runs on Windows, Mac, and Linux.
All that’s needed is a Java Runtime Environmnet (JRE). This has NOTHING to do with Flex Data Services and FDS applications will not run with it. It does NOT require J2EE. It’s just a simple piece of software you can deploy to make Flex development more like standard web development. Enjoy!