
76
Chapter 3: Sprites
To change the color of a sprite with Lingo or JavaScript syntax, set the appropriate
sprite property:
•
The
color
sprite property sets the sprite’s foreground color. The value is an RGB value.
For more information about this property, see the Scripting Reference topics in the Director
Help Panel.
•
The
bgColor
sprite property sets the sprite’s background color. The value is an RGB value.
For more information about this property, see the Scripting Reference topics in the Director
Help Panel.
Setting blends
You can use blending to make sprites transparent. To change a sprite’s blend setting, use the Sprite
tab in the Property inspector.
Director can gradually change blend settings to make sprites fade in or out. See
“Tweening other
sprite properties” on page 86
.
The Blend percentage value affects only Copy, Background Transparent, Matte, Mask,
and Blend inks.
To set blending for a sprite:
1
Select the sprite.
2
Select a percentage from the Blend pop-up menu in the Property inspector, or enter a blend
percentage between 0 and 100.
To set blending with Lingo or JavaScript syntax:
•
Set the
blend
sprite property. For more information about this property, see the Scripting
Reference topics in the Director Help Panel.
Blend setting of 100%
Blend setting of 30%
Содержание 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...