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.
Содержание DIRECTOR MX-USING DIRECTOR MX
Страница 1: ...Using Director MX Macromedia Director MX...
Страница 12: ...Contents 12...
Страница 156: ...Chapter 4 156...
Страница 202: ...Chapter 6 202...
Страница 244: ...Chapter 7 244...
Страница 292: ...Chapter 10 292...
Страница 330: ...Chapter 12 330...
Страница 356: ...Chapter 13 356...
Страница 372: ...Chapter 14 372...
Страница 442: ...Chapter 16 442...
Страница 472: ...Chapter 18 472...
Страница 520: ...Chapter 19 520...
Страница 536: ...Chapter 20 536...
Страница 562: ...Chapter 23 562...
Страница 566: ...Chapter 24 566...
Страница 602: ...Chapter 27 602...