Adobe Labs have just announced two tools Flex 2:
http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks
Flex Ant Tasks provides a convenient way to build your Flex projects using an industry-standard build management tool.
http://labs.adobe.com/wiki/index.php/Flex_Compiler_Shell
Flex Compiler Shell provides a shell environment that you use to compile Flex applications, modules, and component libraries.
