Path object
247
path.nPts
Availability
Flash MX 2004.
Usage
path.nPts
Description
Read-only property; an integer representing the number of points in the path. A new path
has 0 points.
Example
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 MX 2004-FLASH JAVASCRIPT DICTIONARY
Страница 1: ...Flash JavaScript Dictionary ...
Страница 16: ...16 Contents ...
Страница 40: ...40 Chapter 2 Top level functions ...
Страница 368: ...368 Chapter 3 Objects ...
Страница 386: ...386 Chapter 4 C Level Extensibility ...