DashedLine Documentation

Author: Trevor McCauley, senocular.com
Last Modified: 26/05/08 3:44:33


Summary

DashedLine class:

- description

DashedLine Properties:

- target
- _curveaccuracy

DashedLine Methods:

- setDash
- getDash
- moveTo
- lineTo
- curveTo
- clear
- lineStyle
- beginFill
- beginGradientFill
- endFill


DashedLine class

version: 1.0.2

description:

The DashedLine class provides a means to draw with standard drawing methods but allows you to draw using dashed lines. Dashed lines are continuous between drawing commands so dashes won't be interrupted when new lines are drawn in succession

Use a DashedLine instance just as you would use a movie clip to draw lines and fills using Flash's drawing API on a movie clip.

usage:

No usage provided

parameters:


DashedLine Properties:

target

The target movie clip in which drawings are to be made

_curveaccuracy

A value representing the accuracy used in determining the length of curveTo curves.


DashedLine Methods:

setDash

description: Sets new lengths for dash sizes

usage: No usage provided

parameters:

returns: nothing

getDash

description: Gets the current lengths for dash sizes

usage: No usage provided

parameters:

returns: Array containing the onLength and offLength values respectively in that order

moveTo

description: Moves the current drawing position in target to (x, y).

usage: No usage provided

parameters:

returns: nothing

lineTo

description: Draws a dashed line in target using the current line style from the current drawing position to (x, y); the current drawing position is then set to (x, y).

usage: No usage provided

parameters:

returns: nothing

curveTo

description: Draws a dashed curve in target 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).

usage: No usage provided

parameters:

returns: nothing

clear

description: Clears the drawing in target

usage: No usage provided

parameters:

returns: nothing

lineStyle

description: Sets the lineStyle for target

usage: No usage provided

parameters:

returns: nothing

beginFill

description: Sets a basic fill style for target

usage: No usage provided

parameters:

returns: nothing

beginGradientFill

description: Sets a gradient fill style for target

usage: No usage provided

parameters:

returns: nothing

endFill

description: Ends the fill style for target

usage: No usage provided

parameters:

returns: nothing