Publishing and Exporting > Optimizing movies

Optimizing movies

The larger your movie file, the longer the download time and the slower the movie will be. You can take a number of steps to prepare your movie for optimal playback. As part of the publishing process, Flash automatically performs some optimizing on movies, including detecting duplicate shapes on export and placing them in the file only once, and converting nested groups into single groups.

Before exporting a movie, you can optimize it further using various strategies to reduce the movie size. As you make changes, test your movie on a variety of different computers, operating systems, and Internet connections.

To optimize movies in general:

Use symbols, animated or otherwise, for every element that appears more than once.
Whenever possible, use tweened animations, which take up less file space than a series of keyframes.
For animation sequences, use movie clips instead of graphic symbols.
Limit the area of change in each keyframe; make the action take place in as small an area as possible.
Avoid animating bitmap elements; use bitmap images as background or static elements.
For sound, use MP3, the smallest sound format, whenever possible.

To optimize elements and lines:

Group elements as much as possible.
Use layers to separate elements that change over the course of the animation from those that do not.
Use Modify > Curves > Optimize to minimize the number of separate lines that are used to describe shapes.
Limit the number of special line types such as dashed, dotted, ragged, and so on. Solid lines require less memory. Lines created with the Pencil tool require less memory than brush strokes.

To optimize text and fonts:

Limit the number of fonts and font styles. Use embedded fonts sparingly, because they increase file size.
For Embed Fonts options, select only the characters needed instead of including the entire font.

To optimize colors:

Use the Effect panel (Window > Panels > Effect) to create many different-colored instances of a single symbol.
Use the Mixer panel (Window > Panels > Mixer) to match the color palette of the movie to a browser-specific palette.
Use gradients sparingly. Filling an area with gradient color requires about 50 bytes more than filling it with solid color.
Use alpha transparency sparingly; it can slow playback.