FlashCommand Flash 2004 Command Line Compiler
Mike Chambers has released this tool.
It can be easily integrated with the code editor of your choice, like EditPlus or SciTE|Flash
It needs the .Net Framework, and you can find all the information here