Flex 3 debug file size
Thanks to James on this one – we’d both noticed that compiled SWFs of our new Flex 3 projects were almost double the size of similar projects in Flex 2. Here’s why:
Flex Builder only generates a debug version of the SWF by default. However, and this is the part that is tripping people up, there is no -debug suffix on the generated SWF file, so it will be named as if it were the release version. The big difference is that the file size will be much larger. This last point has raised a red flag with some developers, who mistakenly believe that the latest beta actually increases the file size of the release version of their application.
So basically Flex 3 only generates the debug version by default and no longer generates the ‘production’ version, in order to save development time. Flex 2 would create ‘yourproject-debug.swf’ and ‘yourproject.swf’ at build time, but this no longer occurs. To get the production version you need to go to Project > Export Release Build and go from there.