To change the color of a sprite with Lingo or JavaScript syntax, set the appropriate
sprite property:
•
The
sprite property sets the sprite's foreground color. The value is an RGB value.
color
For more information about this property, see the Scripting Reference topics in the Director
Help Panel.
•
The
bgColor
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.
Blend setting of 100%
Director can gradually change blend settings to make sprites fade in or out. See
sprite properties" on page
The Blend percentage value affects only Copy, Background Transparent, Matte, Mask,
and Blend inks.
To set blending for a sprite:
Select the sprite.
1
Select a percentage from the Blend pop-up menu in the Property inspector, or enter a blend
2
percentage between 0 and 100.
To set blending with Lingo or JavaScript syntax:
•
Set the
blend
Reference topics in the Director Help Panel.
76
Chapter 3: Sprites
sprite property sets the sprite's background color. The value is an RGB value.
Blend setting of 30%
86.
sprite property. For more information about this property, see the Scripting
"Tweening other
Need help?
Do you have a question about the DIRECTOR MX 2004-USING DIRECTOR and is the answer not in the manual?
Questions and answers