
Naming sprites
55
Naming sprites
You can assign a name to a sprite by using the Property inspector and then view the sprite by
name in the Score and on the Stage. Assigning a name lets you refer to the sprite by that name in
Lingo or JavaScript syntax and not just by the channel number that it occupies. You can move a
sprite to a different channel and not worry about changing scripts that once referred to the sprite
by its channel number. The sprite name is different from a cast member name because a sprite is
an instance of that cast member. If you want the sprite name to be displayed in the Score and
Stage, select Edit > Preferences > Score > Name. (If you are using a Macintosh OS X operating
system, select the Director menu, instead of the Edit menu, to access Preferences.) For more
information, see,
“Changing Score settings” on page 20
.
To name a sprite using the Property inspector:
1
Select a sprite in the Score or on the Stage.
2
Select Window > Property Inspector, and select the Sprite tab.
3
Enter a name for the selected sprite in the Name text box.
You can name the sprite anything you like, but you may want something that is easily
recognizable and that will be easy to script.
Содержание DIRECTOR MX 2004-USING DIRECTOR
Страница 1: ...DIRECTOR MX 2004 Using Director...
Страница 16: ...16 Chapter 1 Introduction...
Страница 82: ...82 Chapter 3 Sprites...
Страница 98: ...98 Chapter 4 Animation...
Страница 134: ...134 Chapter 5 Bitmaps...
Страница 242: ...242 Chapter 10 Sound and Synchronization...
Страница 274: ...274 Chapter 11 Using Digital Video...
Страница 290: ...290 Chapter 12 Behaviors...
Страница 302: ...302 Chapter 13 Navigation and User Interaction...
Страница 334: ...334 Chapter 15 The 3D Cast Member 3D Text and 3D Behaviors...
Страница 392: ...392 Chapter 16 Working with Models and Model Resources...
Страница 418: ...418 Chapter 18 Movies in a Window...
Страница 446: ...446 Chapter 22 Managing and Testing Director Projects...