Optimizations of file size - Tips in Flash 9.0

The major junk of optimizing the size of the file in flash comes from playing around with the entities in the library of the scene you are working on. And mostly the bitmaps.

I was quiet surprised to figure out myself why a PNG made the swf file size smaller when built than a JPEG when inside the library. This is reality is the other way round where the PNG occupies more size than the JPEG. Nevertheless as long as we benefit from the PNG its good news. We can save several KBs from this.

Now once you have converted your image sources to PNGs in the library the next step is to optimize it further. Right click on the bitmap and click properties. In the properties panel choose Allow Smoothing if needed (I have noticed no variation in the file size whether this option is chosen or not).

For the compression choose Photo JPEG. This would by default tick the Use document default quality option. Un-check this option and you could also vary the quality required. The lower the quality the lower the size of the swf build.

Follow the above process for as many Bitmaps you have in the scene and you could reduce the size of your build by at least 20 to 30 %.

Comments

Popular posts from this blog

Authoritative Server - MMO

Code dependencies