Path object
343
Path object
Availability
Flash MX 2004.
Description
The Path object defines a sequence of line segments (straight, curved, or both), which you
typically use when creating extensible tools. The following example shows an instance of a
Path object being returned from the flash object:
path = fl.drawingLayer.newPath();
See also the
drawingLayer object
.
Method summary for the Path object
The following methods are available for the Path object:
Property summary for the Path object
The following properties are available for the Path object:
Method
Description
path.addCubicCurve()
Appends a cubic Bézier curve segment to the path.
path.addCurve()
Appends a quadratic Bézier segment to the path.
path.addPoint()
Adds a point to the path.
path.clear()
Removes all points from the path.
path.close()
Appends a point at the location of the first point of the path
and extends the path to that point, which closes the path.
path.makeShape()
Creates a shape on the Stage by using the current stroke and
fill settings.
path.newContour()
Starts a new contour in the path.
Property
Description
path.nPts
Read-only; an integer representing the number of points in the
path.
CHAPTER 30
Objects
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...