curveTo()
Top  Previous  Next


SWiSH Player Support
SWF6 or later - Not Supported (Use File | Test | Browser/Player)

Syntax
mySprite.curveTo(controlX, controlY, anchorX, anchorY)

Arguments
controlX: integer value that defines the horizontal position relative to the registration point of the parent Sprite.
controlY: integer value that defines the vertical position relative to the registration point of the parent Sprite.
anchorX: integer value that defines the horizontal position relative to the registration point of the parent Sprite of the anchor point.
anchorY: integer value that defines the vertical position relative to the registration point of the parent Sprite of the anchor point.

Returns
Nothing.

Description
Method; draws a curve from the current drawing position to the anchor points using the control points. After the line is drawn, the drawing position is set to the position defined by the anchor points. Lines are drawn underneath any objects placed inside the Sprite from SWiSH (such as images, shapes, buttons, etc.). If no drawing position is set by a moveTo method, then the drawing position defaults to 0,0. If any of the arguments are omitted, the function will fail.