March 14, 2008

Flex 3 debug file size

Writing about web page http://www.cbetta.com/blog/index.cfm/2007/10/16/very-important-change-flex-builder-2-flex-builder-3

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.


- No comments Not publicly viewable


Add a comment

You are not allowed to comment on this entry as it has restricted commenting permissions.

Search:

MXNA link

Tweets



    Tags

    Other blogs I like...

    Black Pepper Software

    Eismann-sf Go to 'Comments on: Design News for Web, Graphic Designers'

    Ted On Flex Go to 'Ted On Flash'

    Galleries

    Meetups:

    Not signed in
    Sign in

    Powered by BlogBuilder
    © MMXXI