Optimizing ASF SWF files for size?

Are there any tips / best practices / secrets for optimizing ASF SWF file size? Specifically, any way to get a breakdown of what is taking up space inside the SWF, for example, you used to be in old Flash 7/8 days? I don't use Flash IDE anymore, but now I use Flex Builder or FlashDevelop, so this should be what I can do without Flash IDE.

+2


source to share


5 answers


If you're wondering what is taking up space in the code, you can get this information from the link report. It's not as detailed as you can get from the Flash IDE, but it does show the size of each class (uncompressed.)

To generate a link report, use a flag -link-report <filename>

in mxmlc. It creates an XML file with information about the classes associated with your SWF.



I used the .XSL file described in the link below to clean it up and make it more readable: http://blog.iconara.net/2007/02/25/visualizing-mxmlcs-link-report/

+5


source


One tip: try using Joa Ebert's Reducer tool, which can dramatically reduce the size of any PNG files in your SWF if you've used the embed tag.



http://blog.joa-ebert.com/2009/08/08/reducer/

+1


source


Make sure you use PNG-8 where possible and PNG-24 where you need an alpha channel. Use the pngout tool to optimize them.
And there are some tools that can obfuscate and optimize SWF files.

+1


source


I'm not sure what can be done with Flex Builder or FlashDevelop, but I always keep an eye on font embedding. I try to only insert characters that will definitely be used in the final swf.

+1


source


Hi I previously posted this link in the linked question on parsing the link report ( here ), I have used this in the past and its a pretty nice tool

LinkReportAIR

+1


source







All Articles