I have a project that has multiple modules, as well as a couple of external libraries that we use. I'm trying to use sdk 4.1 and ANT builder to get the same build that I get with Flex Builder.
I can build the applicaiton, css, and modules, but I have not figured out how to take the existing swc's and compile them into a swf. It appears compc compiles a library project, but I don't see anything that compiles a library to a swf.
Also, when I use ANT, the module is larger in size, and all the modules are smaller. Is there any way to export the build and make sure I'm getting the same thing?
the mxmlc utility and Ant class will compile into SWF.
Inside FB, you can specify optimization of modules for a specific core application. This means that any class referenced in the core is omited from the modules (because the modules can get the class definition from the core at runtime).
For the command-line compilers and ANT, you have to supply the list of classes to omit. The SWF compiler will generate this exact list, so it is mostly a matter of pointing the module compilation at the output of the core SWF compilation.