MxDrawingAPI Documentation
Author: Author
Last Modified: 4/05/08 3:16:02
Summary
MxDrawingAPI class:
MxDrawingAPI Properties:
MxDrawingAPI Methods:
version: No version provided
description:
Flash MX Drawing API commands
clear
description: Method; removes all the graphics created during runtime using the movie clip draw methods, including line styles specified with MovieClip.lineStyle(). Shapes and lines that are manually drawn during authoring time (with the Flash drawing tools) are unaffected.
usage:
No usage provided
parameters:
returns: nothing
lineStyle
description:
Method; specifies a line style that Flash uses for subsequent calls to lineTo() and curveTo()
until you call lineStyle() with different parameters. You can call lineStyle() in the middle of
drawing a path to specify different styles for different line segments within a path.
Note: Calls to clear() will set the line style back to undefined.
usage:
No usage provided
parameters:
returns: nothing
beginFill
description: Method; indicates the beginning of a new drawing path. If an open path exists (that is, if the current drawing position does not equal the previous position specified in a MovieClip.moveTo() method) and it has a fill associated with it, that path is closed with a line and then filled. This is similar to what happens when MovieClip.endFill() is called.
usage:
No usage provided
parameters:
returns: nothing
beginGradientFill
description: Method; indicates the beginning of a new drawing path. If the first parameter is undefined, or if no parameters are passed, the path has no fill. If an open path exists (that is if the current drawing position does not equal the previous position specified in a MovieClip.moveTo() method), and it has a fill associated with it, that path is closed with a line and then filled. This is similar to what happens when you call MovieClip.endFill().
usage:
No usage provided
parameters:
returns: nothing
moveTo
description: Method; moves the current drawing position to (x, y). If any of the parameters are missing, this method fails and the current drawing position is not changed.
usage:
No usage provided
parameters:
returns: nothing
lineTo
description: Method; draws a line using the current line style from the current drawing position to (x, y); the current drawing position is then set to (x, y). If the movie clip that you are drawing in contains content that was created with the Flash drawing tools, calls to lineTo() are drawn underneath the content. If you call lineTo() before any calls to the moveTo() method, the current drawing position defaults to (0, 0). If any of the parameters are missing, this method fails and the current drawing position is not changed.
usage:
No usage provided
parameters:
returns: nothing
curveTo
description: Method; draws a curve using the current line style from the current drawing position to (x, y) using the control point specified by (cx, cy). The current drawing position is then set to (x, y). If the movie clip you are drawing in contains content created with the Flash drawing tools, calls to curveTo() are drawn underneath this content. If you call curveTo() before any calls to moveTo(), the current drawing position defaults to (0, 0). If any of the parameters are missing, this method fails and the current drawing position is not changed.
usage:
No usage provided
parameters:
returns: nothing
endFill
description: Method; applies a fill to the lines and curves added since the last call to beginFill() or beginGradientFill(). Flash uses the fill that was specified in the previous call to beginFill() or beginGradientFill(). If the current drawing position does not equal the previous position specified in a moveTo() method and a fill is defined, the path is closed with a line and then filled.
usage:
No usage provided
parameters:
returns: nothing