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
path.addCubicCurve()
Availability
Flash MX 2004.
Usage
path.addCubicCurve(xAnchor, yAnchor, x2, y2, x3, y3, x4, y4)
Parameters
A floating-point number that specifies the x position of the first control point.
xAnchor
242
Chapter 3: Objects
object.
Description
Method; appends a cubic Bézier curve segment to the path.
Method; appends a quadratic Bézier segment to the path.
Method; adds a point to the path.
Method; removes all points from the path.
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.
Method; creates a shape on the Stage by using the current stroke
and fill settings.
Method; starts a new contour in the path.
Description
Read-only; an integer representing the number of points in the path.
CHAPTER 3
Objects
Need help?
Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?