![MACROMEDIA FLASH MX 2004-LEARNING FLASH Скачать руководство пользователя страница 66](http://html1.mh-extra.com/html/macromedia/flash-mx-2004-learning-flash/flash-mx-2004-learning-flash_manual_3379009066.webp)
66
Chapter 8: Create Symbols and Instances
3.
Drag the middle-right sizing handle of the Free Transform tool slightly to the right, to stretch
the symbol.
4.
Click Scene 1, above the Timeline, to exit symbol-editing mode.
Both instances of the symbol reflect the transformation.
Create a movie clip symbol
A movie clip symbol is analogous in many ways to a document within a document. This symbol
type has its own Timeline independent of the main Timeline. You can add movie clips within
other movie clips and buttons to create nested movie clips. You can also use the Property
inspector to assign an instance name to an instance of a movie clip, then reference the instance
name in ActionScript.
You’ll convert the tire on the Stage into a movie clip.
1.
With the Selection tool, click the tire on the Stage to select it and select Modify > Convert
to Symbol.
2.
In the Convert to Symbol dialog box, enter
MCWheel
as the name, and select MovieClip as
the behavior.
3.
In the Registration grid, this time select the center square as the registration point, so the center
of the movie clip becomes the axis around which the symbol rotates. Then click OK.
The image on the Stage is now an instance of the
MCWheel
symbol in the library.
Assign an instance name to the movie clip
To refer to an instance in ActionScript, and as a general best practice, always assign instance
names to buttons and movie clip symbols. (You cannot assign an instance name to a
graphic symbol.)
•
In the Property inspector, with the instance of MCWheel selected on the Stage, enter
wheel_mc
in the Instance Name text box.
Содержание FLASH MX 2004-LEARNING FLASH
Страница 1: ...Learning Flash...
Страница 8: ...8 Contents...
Страница 34: ...34 Chapter 3 Write Scripts with ActionScript...
Страница 54: ...54 Chapter 6 Create a User Interface with Layout Tools...
Страница 62: ...62 Chapter 7 Draw in Flash...
Страница 68: ...68 Chapter 8 Create Symbols and Instances...
Страница 76: ...76 Chapter 9 Add Animation and Navigation to Buttons...
Страница 104: ...104 Chapter 13 Add Interactivity with ActionScript...
Страница 112: ...112 Chapter 14 Create a Form with Conditional Logic and Send Data...
Страница 122: ...122 Chapter 15 Work with Objects and Classes Using ActionScript 2 0...