EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Page 458

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
458 ActionScript classes
Parameters
controlX:Number - An integer that specifies the horizontal position of the control point
relative to the registration point of the parent movie clip.
controlY:Number - An integer that specifies the vertical position of the control point relative
to the registration point of the parent movie clip.
anchorX:Number - An integer that specifies the horizontal position of the next anchor point
relative to the registration point of the parent movie clip.
anchorY:Number - An integer that specifies the vertical position of the next anchor point
relative to the registration point of the parent movie clip.
Example
The following example draws a nearly circular curve with a solid blue hairline stroke and a
solid red fill:
this.createEmptyMovieClip("circle_mc", 1);
with (circle_mc) {
lineStyle(0, 0x0000FF, 100);
beginFill(0xFF0000);
moveTo(0, 100);
curveTo(0,200,100,200);
curveTo(200,200,200,100);
curveTo(200,0,100,0);
curveTo(0,0,0,100);
endFill();
}
The curve drawn in this example is a quadratic Bezier curve. Quadratic Bezier curves consist
of two anchor points and a control point. The curve interpolates the two anchor points, and
curves toward the control point.

Table of Contents

Related product manuals