Path.addcurve() - 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

A floating-point number that specifies the y position of the first control point.
yAnchor
A floating-point number that specifies the x position of the second control point.
x2
A floating-point number that specifies the y position of the second control point.
y2
A floating-point number that specifies the x position of the third control point.
x3
A floating-point number that specifies the y position of the third control point.
y3
A floating-point number that specifies the x position of the fourth control point.
x4
A floating-point number that specifies the y position of the fourth control point.
y4
Returns
Nothing.
Description
Method; appends a cubic Bézier curve segment to the path.
Example
The following example creates a new path, stores it in the
to the path:
var myPath = fl.drawingLayer.newPath();
myPath.addCubicCurve(0, 0, 10, 20, 20, 20, 30, 0);

path.addCurve()

Availability
Flash MX 2004.
Usage
path.addCurve(xAnchor, yAnchor, x2, y2, x3, y3)
Parameters
A floating-point value that specifies the x position of the first control point.
xAnchor
A floating-point value that specifies the y position of the first control point.
yAnchor
A floating-point value that specifies the x position of the second control point.
x2
A floating-point value that specifies the y position of the second control point.
y2
A floating-point value that specifies the x position of the third control point.
x3
A floating-point value that specifies the y position of the third control point.
y3
Returns
Nothing.
Description
Method; appends a quadratic Bézier segment to the path.
variable, and assigns the curve
myPath
Path object
243

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents