MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference page 458

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Parameters
- An integer that specifies the horizontal position of the control point
controlX:Number
relative to the registration point of the parent movie clip.
- An integer that specifies the vertical position of the control point relative
controlY:Number
to the registration point of the parent movie clip.
- An integer that specifies the horizontal position of the next anchor point
anchorX:Number
relative to the registration point of the parent movie clip.
- An integer that specifies the vertical position of the next anchor point
anchorY:Number
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.
458
ActionScript classes

Advertisement

Table of Contents
loading

Table of Contents