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
Method summary for the Path object
The following methods are available for the Path object:
Method
path.addCubicCurve()
path.addCurve()
path.addPoint()
path.clear()
path.close()
path.makeShape()
path.newContour()
Property summary for the Path object
The following properties are available for the Path object:
Property
path.nPts
CHAPTER 30
object.
Description
Appends a cubic Bézier curve segment to the path.
Appends a quadratic Bézier segment to the path.
Adds a point to the path.
Removes all points from the path.
Appends a point at the location of the first point of the path
and extends the path to that point, which closes the path.
Creates a shape on the Stage by using the current stroke and
fill settings.
Starts a new contour in the path.
Description
Read-only; an integer representing the number of points in the
path.
Objects
Path object
343
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?