Sprites
179
2
Do any of the following:
•
Click the Flip Vertical or Flip Horizontal button on the Sprite tab in the Property inspector
to flip the sprite without moving the registration point or changing the current skew or
rotation angles.
•
Select Modify > Transform > Flip Horizontal in Place or Flip Vertical in Place to flip the sprite
so that its bounding rectangle stays in place and the registration point is moved, if necessary.
•
Select Modify > Transform > Mirror Horizontal or Mirror Vertical to flip the sprite without
moving the registration point but inverting the skew and rotation angles.
Changing the color of a sprite
You can tint or color sprites by selecting new foreground and background colors from the
Property inspector or with Lingo. Selecting a new foreground color changes black pixels within
the sprite to the selected color and blends dark colors with the new color. Selecting a new
background color changes white pixels within the sprite to the selected color and blends light
colors with the new color.
Director can animate foreground and background color changes in sprites, shifting gradually
between the colors you specify in the start and end frames of a sprite. See “Tweening other sprite
properties” on page 188.
To reverse the colors of an image, change the foreground color to white and the background
color to black.
To change the color of a sprite:
1
Select a sprite.
2
Do one of the following:
•
Select colors from the Forecolor and Backcolor boxes on the Sprite tab in the Property
inspector.
•
Enter RGB values (hexadecimal) or palette index values (0-255) for the foreground and
background colors on the Sprite tab in the Property inspector.
To change the color of a sprite with Lingo, set the appropriate sprite property:
•
The
color
sprite property sets the sprite’s foreground color. The value is an RGB value. See
color (sprite property)
in the Lingo Dictionary.
•
The
bgColor
sprite property sets the sprite’s background color. The value is an RGB value. See
bgColor
in the Lingo Dictionary.
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...