Flash CS3 Documentation |
|||
| Extending Flash > Objects > Path object | |||
Flash MX 2004.
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.
The following methods are available for the Path object:
|
Method |
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. |
The following properties are available for the Path object:
|
Property |
Description |
|---|---|
|
Read-only; an integer representing the number of points in the path. |
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00004319.html