Description
Method; erases what was previously drawn using the drawingLayer and prepares for more
drawing commands. Should be called after
between
drawingLayer.beginFrame()
Stage until you call the next
where you start and end drawing; it does not refer to timeline frames.) You typically use this
method only when creating extensible tools. See
drawingLayer.cubicCurveTo()
Availability
Flash MX 2004.
Usage
drawingLayer.cubicCurveTo(x1Ctrl, y1Ctrl, x2Ctl, y2Ctl, xEnd, yEnd)
Parameters
A floating-point value that is the x location of the first control point.
x1Ctl
A floating-point value that is the y location of the first control point.
y1Ctl
A floating-point value that is the x position of the middle control point.
x2Ctl
A floating-point value that is the y position of the middle control point.
y2Ctl
A floating-point value that is the x position of the end control point.
xEnd
A floating-point value that is the y position of the end control point.
yEnd
Returns
Nothing.
Description
Method; draws a cubic curve from the current pen location using the parameters as the
coordinates of the cubic segment. You typically use this method only when creating
extensible tools.
Example
The following example draws a cubic curve using the specified control points:
fl.drawingLayer.cubicCurveTo(0, 0, 1, 1, 2, 0);
drawingLayer.beginDraw()
and an
drawingLayer.endFrame()
and
beginFrame()
endFrame()
drawingLayer.beginDraw()
. Everything drawn
remains on the
. (In this context, frame refers to
.
drawingLayer object
179
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?
Questions and answers