Sprites
175
Changing the appearance of sprites
You can change the appearance of sprites on the Stage without affecting the cast member assigned
to the sprite. You can resize, rotate, skew, flip, and apply new foreground and background colors
to sprites. Applying these changes allows you to reuse the same cast member to create several
different versions of an image. For example, you can create a flipped and rotated sprite with a new
color. Since each cast member adds to downloading time, reusing cast members in this way
reduces the number of cast members in your movie and makes it download faster.
Resizing and scaling sprites
You can resize sprites directly on the Stage by dragging their handles. To resize the sprite precisely,
you can enter coordinates or scale sprites by a specified percentage on the Sprite tab in the
Property inspector. You can also set the sprite’s size with Lingo.
Changing a sprite’s size on the Stage doesn’t change the size of the cast member that is assigned to
the sprite, nor is the size of the sprite affected if you resize its cast member.
In some cases, resizing bitmap sprites can cause noticeable delays. If a bitmap sprite must be a
particular size, make the cast members that appear in the sprite the proper size. You can do this
with Modify > Transform Bitmap or in any image-editing program. Scaling and resizing sprites
works best with vector shapes.
Note:
The procedure for resizing a rotated or skewed sprite is different from the following procedures. See
“Rotating and skewing sprites” on page 176.
To resize a sprite by dragging its handles:
1
Select the sprite.
2
On the Stage, drag any of the sprite’s resize handles. Hold down Shift while dragging to
maintain the sprite’s proportions.
To scale a sprite by pixels or by an exact percentage:
1
Select the sprite you want to scale and click the Sprite tab of the Property inspector
(Graphical view).
2
Click the Scale button.
The Scale Sprite dialog box appears.
3
Enter new values to scale the sprite by doing one of the following:
•
Specify a pixel size in the Width or Height text boxes. If Maintain Proportions is selected, all
the updatable fields adjust to reflect the new scaled size. If Maintain Proportions is not
selected, you can specify new proportions in the Width and Height text boxes.
•
Enter a percentage in the Scale text box.
4
Click OK.
The sprite is scaled relative to its current size not to the size of its parent cast member.
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...