Flash CS3 Documentation |
|||
| Extending Flash > Objects > Path object > path.nPts | |||
Flash MX 2004.
path.nPts
Read-only property; an integer representing the number of points in the path. A new path has 0 points.
The following example uses the Output panel to show the number of points in the path referenced by the myPath variable:
var myPath = fl.drawingLayer.newPath();
var numOfPoints = myPath.nPts;
fl.trace("Number of points in the path: " + numOfPoints);
// Displays: Number of points in the path: 0
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/00004327.html