Path.addpoint(), Path.clear() – Adobe Extending Flash Professional CS4 User Manual
Page 367

345
EXTENDING FLASH CS4 PROFESSIONAL
Path object
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 number that specifies the x position of the point.
y
A floating-point number 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.
- Acrobat 9 PRO (590 pages)
- Acrobat 9 PRO Extended (546 pages)
- Acrobat 8 3D (600 pages)
- Acrobat 7 Professional (793 pages)
- After Effects CS4 (753 pages)
- After Effects CS4 (778 pages)
- Media Encoder CS5.5 (59 pages)
- Media Encoder CS5.5 (77 pages)
- Media Encoder CS4 (45 pages)
- Digital Publishing Suite (222 pages)
- InDesign CC v.9.2 2014 (643 pages)
- After Effects CS3 (677 pages)
- InCopy CS3 (393 pages)
- InCopy CS3 (710 pages)
- InCopy CS3 (672 pages)
- InDesign Filters Readme (15 pages)
- InDesign Tagged Text (29 pages)
- InDesign (829 pages)
- InDesign CS4 (717 pages)
- Dreamweaver CS3 (700 pages)
- Dreamweaver CS3 (738 pages)
- Dreamweaver CS3 (732 pages)
- Extending Dreamweaver CS3 (387 pages)
- Dreamweaver API Reference CS3 (533 pages)
- Flash Professional CS3 (943 pages)
- Flash Professional CS3 (527 pages)
- Extending Flash Professional CS5.5 (565 pages)
- Premiere Pro CS6 (575 pages)
- Premiere Pro CS6 (485 pages)
- Premiere Pro CS4 (491 pages)
- Premiere Pro CS3 (455 pages)
- Photoshop CC 2014 v.14.xx (1061 pages)
- Photoshop Lightroom 2 (261 pages)
- Photoshop CS4 (707 pages)
- Photoshop CS3 (681 pages)
- Elements Organizer 8 for Windows (180 pages)
- Elements Organizer 11 (238 pages)
- Premiere Elements 12 (319 pages)
- Premiere Elements 7 (313 pages)
- Illustrator CS6 (556 pages)
- Illustrator CS6 (499 pages)
- Illustrator CS3 (495 pages)