I've downloaded the Flex 2 SDK and I'm using Scite to write and edit the classes. I also borrowed information from http://www.senocular.com/flash/tutorials/as3withmxmlc/ to intergrate batch compiling and debugging.