Tuesday, August 16, 2011

You probably already know these tips

FILE SIZE strategy

40kb = 40960 bytes, and 30kb = 30720 bytes. You may have more room than you thought. Do "get info" on a file in Mac to get the exact byte count.

Uncheck 'Include MXP Metadata' in Flash publish settings to save roughly .5 kb (more depending on fonts)

In most cases, vector will be smaller than bitmap, so try redrawing flat graphics as vector

Breaking text into shapes usually adds file size. Instead, use static text as fonts, and get rich effects using masks and filters.

In some cases, such as with grunge fonts or some display fonts, it is smaller to use limited palette gif in place of vector fonts.

Bring in all photo images as flat PNG so that you can adjust jpg compression in Flash. It's convenient to be able to adjust settings in the library, or all at once in publish settings.

Avoid the use of transparent pngs wherever possible. Instead, use flat images and mask them. Or, use flat images in screen mode or multiply mode to achieve transparency. 

It's usually smaller to bring in complex illustrations or heavy fonts as limited-palette gif images. 

Background images can be tiled or repeated to save on bitmap size. Any symmetrical images can be brought in as halves, and flipped.

Selective blurring and 'smart blur' filters in Photoshop can help to keep a crunched jpg from looking nasty. In some cases you might want to cut up an image so that you can compress some parts more than others.

Long tweens are smaller done as scripted rather than timeline animation. If you just have simple tweens and fades, you might be able to skip the tween class and write your own onEnterFrame script.

No comments:

Post a Comment