82
Using Symbols, Instances, and Library Assets
For more information, see “When to enable caching” in Chapter 11, “Working with Movie
Clips,” of
Learning ActionScript 2.0 in Flash
.
Under the following circumstances, a movie clip will not use a bitmap (even if the Use
Runtime Bitmap Caching check box is selected) and will instead render the movie clip or
button symbol using vector data:
■
The bitmap is too large (greater than 2880 pixels in either direction).
■
The bitmap fails to allocate (producing an out of memory error).
■
The parent surface uses a vector clipper (the parent is partially rotated and scrolled).
To specify bitmap caching for a movie clip:
1.
Select the movie clip or button symbol on the Stage.
2.
In the symbol Property inspector, select the Use Runtime Bitmap Caching check box.
About controlling instances and symbols
with ActionScript
You can use ActionScript to control movie clip and button instances. The movie clip or
button instance must have a unique instance name to be used with ActionScript. For
information on assigning a name to an instance, see
“Creating instances” on page 85
. You can
also use ActionScript to control movie clip or button symbols. For more information, see
Chapter 10, “Handling Events,” in
Learning ActionScript 2.0 in Flash
.
Creating symbols
You can create a symbol from selected objects on the Stage, or you can create an empty symbol
and make or import the content in symbol-editing mode. You can also create font symbols in
Flash. See
“Creating font symbols” on page 173
. Symbols can have all the functionality that
you can create with Flash, including animation.
By using symbols that contain animation, you can create Flash applications with a lot of
movement while minimizing file size. Consider creating animation in a symbol when there is
a repetitive or cyclic action—the up-and-down motion of a bird’s wings, for example.
You can also add symbols to your document by using shared library assets during authoring or
at runtime. See
“Using shared library assets” on page 104
.
NO
TE
You can only apply the Use Runtime Bitmap Caching check box to movie clip and button
symbols.
Содержание FLASH 8-FLASH
Страница 1: ...Using Flash ...
Страница 12: ...12 Contents ...
Страница 110: ...110 Using Symbols Instances and Library Assets ...
Страница 128: ...128 Working with Color Strokes and Fills ...
Страница 156: ...156 Drawing ...
Страница 190: ...190 Working with Text ...
Страница 224: ...224 Working with Graphic Objects ...
Страница 270: ...270 Creating Motion ...
Страница 310: ...310 Working with Video ...
Страница 362: ...362 Working with Screens Flash Professional Only ...
Страница 386: ...386 Creating Multilanguage Text ...
Страница 454: ...454 Data Integration Flash Professional Only ...
Страница 500: ...500 Publishing ...
Страница 534: ...534 Creating Accessible Content ...