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.
Содержание Flash Lite 2
Страница 1: ...Flash Lite 2 x ActionScript Language Reference...
Страница 22: ...22 Contents...
Страница 244: ...244 ActionScript language elements...
Страница 760: ...760 ActionScript classes...