Chapter 5
184
Subtract
subtracts the RGB color value of the foreground sprite’s color from the RGB value of the
background sprite’s color to determine the new color. If the color value of the new color is less
than 0, Director adds 256 so the remaining value is between 0 and 255.
Subtract Pin
subtracts the RGB color value of pixels in the foreground sprite from the value of the
background sprite. The value of the new color is not allowed to be less than 0. If the value of the
new color is negative, the value is set to 0.
Darken
changes the effect of the Foreground and Background color properties of a sprite to create
dramatic color effects that generally darken and tint a sprite. Darken ink makes the background
color equivalent to a color filter through which the sprite is viewed on the Stage. White provides
no filtering; black darkens all color to pure black. The foreground color is then added to the
filtered image, which creates an effect that is similar to shining light of that color onto the image.
Selecting Darken ink has no effect on a sprite until you select nondefault foreground and
background colors. See “About Darken and Lighten inks” on page 182.
Lighten
changes the effect of the Foreground and Background color properties of a sprite so that
it is easy to create dramatic color effects that generally lighten an image. Lighten ink makes the
colors in a sprite lighter as the background color gets darker. The foreground color tints the image
to the degree allowed by the lightening. See “About Darken and Lighten inks” on page 182.
Note:
Mask and Matte use more memory than other inks because Director must duplicate the mask of the artwork.
Assigning a cast member to a sprite with Lingo
Several Lingo properties specify the cast member that is assigned to a sprite. You can use
these properties to determine a sprite’s cast member and switch the sprite’s cast members as
the movie plays.
To specify the cast member, including its cast:
•
Set the
member
sprite property. See
member (sprite property)
in the Lingo Dictionary.
Setting this property is the most reliable way to specify a sprite’s cast member. You can also set
the
memberNum
sprite property, but this is reliable only when the new cast member is in the
same cast as the current cast member.
To determine which cast contains the cast member assigned to a sprite:
•
Test the
castLibNum
sprite property. See
castLibNum
in the Lingo Dictionary.
This procedure is useful for updating movies that serve as templates.
Summary of Contents for DIRECTOR MX-USING DIRECTOR MX
Page 1: ...Using Director MX Macromedia Director MX...
Page 12: ...Contents 12...
Page 156: ...Chapter 4 156...
Page 202: ...Chapter 6 202...
Page 244: ...Chapter 7 244...
Page 292: ...Chapter 10 292...
Page 330: ...Chapter 12 330...
Page 356: ...Chapter 13 356...
Page 372: ...Chapter 14 372...
Page 442: ...Chapter 16 442...
Page 472: ...Chapter 18 472...
Page 520: ...Chapter 19 520...
Page 536: ...Chapter 20 536...
Page 562: ...Chapter 23 562...
Page 566: ...Chapter 24 566...
Page 602: ...Chapter 27 602...