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.
Содержание 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...