To specify a vector shape's fill in script:
•
Set the
fillColor
more information about these properties, see the Scripting Reference topics in the Director
Help Panel.
Editing vector shapes
To edit vector shapes, you use the Vector Shape window. You change vector shapes by moving,
adding, or deleting control points and changing the way they control curves. You can also change
the way a vector shape is placed on the Stage by moving its registration point, using either the
Vector Shape window or Lingo or JavaScript syntax.
To adjust the outline of a vector shape:
Open a vector shape in the Vector Shape window.
1
Click the Arrow tool and make any of the following changes:
2
To move a curve or corner point, drag it to any location.
To move multiple points, Shift-click or marquee select all the points you want to move, then
drag any one of the selected points.
To drag a single curve within a shape, select the Arrow tool and drag the curve. If the curve
is filled, you can click anywhere within the filled area and drag the curve.
To adjust a curve, select a curve point and drag a control handle.
By default, the two control handles remain at a 180° angle from each other. If you want to drag
one control handle independently from the other one, hold down Control (Windows) or
Command (Macintosh) when you drag it. To constrain the control handles to vertical,
horizontal, or a 45° angle, hold down Shift as you move them.
To change a corner point to a curve point, Alt-click (Windows) or Option-click
(Macintosh) and drag away from the handle to extend a control handle.
To change a curve point to a corner point, drag the control handles directly over the
curve point.
To delete a point, select the point and press Backspace (Windows) or Delete (Macintosh).
To move the window view without using the scroll bars, click the Hand tool and drag
anywhere inside the shape.
To add a point in the middle of a shape:
Open a vector shape in the Vector Shape window.
1
Click the Pen tool.
2
If the shape is closed, move the pointer over a line until it changes and then click the mouse
3
button. If the shape is open, hold down Alt (Windows) or Option (Macintosh) and move the
pointer over a line until it changes; then click the mouse button.
To add a new point that is connected to a certain end point:
Click the Arrow tool and select an end point.
1
Click the Pen tool, and click the location where you want to add the next point.
2
,
,
fillMode
fillOffset
, and
cast member properties. For
fillScale
Editing vector shapes
139
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