ANT is an excellent tool for automating software processes. It is like MAKE but it uses the Java language. If you are using Flex SDK not the Flex Builder, it must need to repeat the same command to complete the compile and package work. Then ANT could help you to do so. Following is the article introduce how to use ANT to compile your SWC( an example showed ). You could have a try according the example.