
19
Adobe Flash CS3 Classroom in a Book
• Use layers to separate elements that change during the
animation from elements that do not.
• Use Modify > Shape > 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.
• Limit the number of fonts and font styles. Use em-
bedded fonts sparingly because they increase file size.
• For Embed Fonts options, select only the characters
needed instead of including the entire font.
• Use the Color menu in the Symbol Property inspector
to create many instances of a single symbol in different
colors.
• Use the Color panel (Window > Color) to match the
color palette of the document 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 because it can slow
playback.
Bitmap caching
Bitmap caching helps you enhance the performance of
nonchanging movie clips in your applications. When
you set the MovieClip.cacheAsBitmap or Button.
cacheAsBitmap property to true, Flash Player caches
an internal bitmap representation of the movie clip
or button instance. This can improve performance for
movie clips that contain complex vector content. All
of the vector data for a movie clip that has a cached
bitmap is drawn to the bitmap, instead of to the main
Stage.
Note: The bitmap is copied to the main Stage as un-
stretched, unrotated pixels snapped to the nearest pixel
boundaries. Pixels are mapped one-to-one with the
parent object. If the bounds of the bitmap change, the
bitmap is re-created instead of being stretched.
LESSON 10
Komentarze do niniejszej Instrukcji