
78
Using Symbols, Instances, and Library Assets
You can share symbols among documents as shared library assets during authoring or at
runtime. For runtime shared assets, you can link assets in a source document to any number
of destination document, without importing the assets into the destination document. For
assets shared during authoring, you can update or replace a symbol with any other symbol
available on your local network. See
“Using shared library assets” on page 104
.
If you import library assets that have the same name as assets already in the library, you can
resolve naming conflicts without accidentally overwriting existing assets. See
“Resolving
conflicts between library assets” on page 108
.
For an introduction to using symbols and instances, see “Basic Tasks: Create Symbols and
Instances” in Flash Tutorials.
This chapter contains the following sections:
Types of symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
About 9-slice scaling and movie clip symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Editing movie clip symbols with 9-slice scaling. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Runtime bitmap caching movie clip and button symbols . . . . . . . . . . . . . . . . . . . . . . 81
About controlling instances and symbols with ActionScript. . . . . . . . . . . . . . . . . . . . 82
Creating symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Creating instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Creating buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Enabling, editing, and testing buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Editing symbols. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Changing instance properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Controlling instances with behaviors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Creating custom behaviors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Best practices for using behaviors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Breaking apart instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .101
Getting information about instances on the Stage . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Copying library assets between documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Using shared library assets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Resolving conflicts between library assets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Содержание FLASH 8-USING 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...