User Guide
Path object 347
Returns
Nothing.
Description
Method; appends a point at the location of the first point of the path and extends the path to
that point, which closes the path. If the path has no points, no points are added.
Example
The following example creates a closed path:
var myPath = fl.drawingLayer.newPath();
myPath.close();
path.makeShape()
Availability
Flash MX 2004.
Usage
path.makeShape([bSupressFill [, bSupressStroke]])
Parameters
bSuppressFill A Boolean value that, if set to true, suppresses the fill that would be
applied to the shape. The default value is
false. This parameter is optional.
bSupressStroke A Boolean value that, if set to true, suppresses the stroke that would be
applied to the shape. The default value is
false. This parameter is optional.
Returns
Nothing.
Description
Method; creates a shape on the Stage by using the current stroke and fill settings. The path is
cleared after the shape is created. This method has two optional parameters for suppressing
the fill and stroke of the resulting shape object. If you omit these parameters or set them to
false, the current values for fill and stroke are used.
Example
The following example creates a shape with the current fill and no stroke:
var myPath = fl.drawingLayer.newPath();
myPath.makeShape(false, true);