Path.addpoint(); Path.clear() - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

Example
The following example creates a new path, stores it in the
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
A floating-point value that specifies the x position of the point.
x
A floating-point value that specifies the y position of the point.
y
Returns
Nothing.
Description
Method; adds a point to the path.
Example
The following example creates a new path, stores it in the
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.
244
Chapter 3: Objects
variable, and assigns the curve
myPath
variable, and assigns the new
myPath

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents