Previously I had several posts about getting Flex 2 to compile on my mac. The information was spread over several posts, so I wanted to summarize that info here.

The first step is to get a copy of the Framework files. For mac users this requires access to a linux or Windows box. I used the Flex Enterprise Services install and chose the compile to war option. In the location you choose to install there will be a tools folder. Those are the files you need. I also found on a pc that after installing the Flex Builder 2 app, I have a framework folder which appears to have the same files.

In my regular eclipse I create a new project, and select a location for it on my filesystem. In that project I created a flex folder. Then I just needed to copy the lib and frameworks folders from the install location mentioned above.

Now back in eclipse, at the root of our project, I create my hello.mxml. Just a simple Flex 2 file outputing some text in a label. And then the last peice is my build file. Save the script below as build.xml in the root of your project.















Now if you run the default task in that file you will be provided with a hello.swf file that you can run and distribute as you like.

Feel free to let me know if you run into any problems with this, as i have only tested it for my own local development.