Click a location in the Paint window to set the registration point.
3
You can also drag the dotted lines around the window to reposition the registration point.
Note: To reset the default registration point at the center of the cast member, double-click the
Registration Point tool.
To set a bitmap's registration point with Lingo or JavaScript syntax:
•
Set the
regPoint
Director automatically centers the registration point if the bitmap is edited. For example, you
can set the regPoint cast member property using the following:
Lingo:
member("bitmapMemberName").regPoint = point(10,10)
JavaScript:
member("bitmapMemberName").regPoint = point(10,10);
For more information, see the Scripting Reference topics in the Director Help Panel.
Changing size, color depth, and color palette for bitmaps
You can use Transform Bitmap to change the size, color depth, and palette of selected cast
members. Any change you make to a cast member's color depth or palette affects the cast member
itself—not only its appearance on the Stage. You can't undo changes to the color depth and
palette. If you want to keep a cast member's original bitmap unchanged but temporarily apply a
different palette, use the Member tab in the cast member's Property inspector. To change the size
of only the sprite on the Stage, use the Sprite tab in the sprite's Property inspector.
You can also remap images to new palettes with an image-editing program such as
Macromedia Fireworks.
The Transform Bitmap dialog box displays values for the current selection. If you select more than
one cast member, a blank value indicates that cast members in the selection have different values.
To maintain a cast member's original value, leave that value blank in the dialog box.
To use Transform Bitmap:
Select the bitmap cast members to change.
1
Select Modify > Transform Bitmap.
2
To change the size of the bitmap, do one of the following:
3
If multiple cast members are selected, you can resize all the cast members to the dimensions
you enter.
Enter new measurements (in pixels) in the Width and Height text boxes.
Enter a scaling percentage in the Scale text box.
Select Maintain Proportions to keep the width and height of the selected cast member in
proportion. If you change the width, the proportional height is automatically entered in the
Height text box. If you use Transform Bitmap to change several cast members at once, be sure
to deselect Maintain Proportions. If you don't, all cast members are resized to the values in the
Width and Height text boxes.
To change the color depth, select an option from the Color Depth pop-up menu.
4
For more information about the color depth of bitmap cast members, see
on page
145.
cast member property. Set the
Changing size, color depth, and color palette for bitmaps
property to specify whether
centerRegPoint
"Controlling color"
113
Need help?
Do you have a question about the DIRECTOR MX 2004-USING DIRECTOR and is the answer not in the manual?
Questions and answers