244
Chapter 3: Objects
Example
The following example creates a new path, stores it in the
myPath
variable, and assigns the curve
to the path:
var myPath = fl.drawingLayer.newPath();
myPath.addCurve(0, 0, 10, 20, 20, 0);
path.addPoint()
Availability
Flash MX 2004.
Usage
path.addPoint(
x
,
y
)
Parameters
x
A floating-point value that specifies the
x
position of the point.
y
A floating-point value that specifies the
y
position of the point.
Returns
Nothing.
Description
Method; adds a point to the path.
Example
The following example creates a new path, stores it in the
myPath
variable, and assigns the new
point to the path:
var myPath = fl.drawingLayer.newPath();
myPath.addPoint(10, 100);
path.clear()
Availability
Flash MX 2004.
Usage
path.clear()
Parameters
None.
Returns
Nothing.
Description
Method; removes all points from the path.
Содержание 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 ...