ActionScript 3.0 Language and Components Reference | All Packages | All Classes | Language Elements | Index | Appendixes | Conventions | Frames No Frames |
GraphicsPathCommand

Package | flash.display
Class | public final class GraphicsPathCommand
Inheritance | GraphicsPathCommand Object

Defines the values that can be used when specifying path drawing commands.

These values are usually used with the `Graphics.drawPath()` method or stored in the `commands` vector of a GraphicsPath object.

See also

flash.display.Graphics.drawPath()
flash.display.GraphicsPath.commands

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | constructor : Object A reference to the class object or constructor function for a given object instance. | Object
|  | prototype : Object [static] A reference to the prototype object of a class or function object. | Object

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | hasOwnProperty(name:String):Boolean Indicates whether an object has a specified property defined. | Object
|  | isPrototypeOf(theClass:Object):Boolean Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter. | Object
|  | propertyIsEnumerable(name:String):Boolean Indicates whether the specified property exists and is enumerable. | Object
|  | setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void Sets the availability of a dynamic property for loop operations. | Object
|  | toString():String Returns the string representation of the specified object. | Object
|  | valueOf():Object Returns the primitive value of the specified object. | Object

Public Constants

| Constant | Defined By
--- | --- | ---
|  | CURVE_TO : int = 3 [static] Specifies a drawing command that draws a curve from the current drawing position to the x and y coordinates specified in the data vector, using a control point. | GraphicsPathCommand
|  | LINE_TO : int = 2 [static] Indicates a drawing command that draws a line from the current drawing position to the x and y coordinates specified in the data vector. | GraphicsPathCommand
|  | MOVE_TO : int = 1 [static] Indicates a drawing command that moves the current drawing position to the x and y coordinates specified in the data vector. | GraphicsPathCommand
|  | NO_OP : int = 0 [static] Represents the default "do nothing" command. | GraphicsPathCommand
|  | WIDE_LINE_TO : int = 5 [static] Specifies a "line to" drawing command, but uses two sets of coordinates instead of one. | GraphicsPathCommand
|  | WIDE_MOVE_TO : int = 4 [static] Specifies a "move to" drawing command, but uses two sets of coordinates instead of one. | GraphicsPathCommand

Constant Detail

CURVE_TO | Constant

`public static const CURVE_TO:int = 3`

Specifies a drawing command that draws a curve from the current drawing position to the x and y coordinates specified in the data vector, using a control point. When executed, this command has the same effect as the `Graphics.lineTo()` method. Uses 2 points in the data vector control & anchor (cx, cy, ax, ay ).

See also

flash.display.Graphics.curveTo()

LINE_TO | Constant |

`public static const LINE_TO:int = 2`

Indicates a drawing command that draws a line from the current drawing position to the x and y coordinates specified in the data vector. When executed, this command has the same effect as the `Graphics.lineTo()` method. Uses 1 point in the data vector (x,y).

See also

flash.display.Graphics.lineTo()

MOVE_TO | Constant |

`public static const MOVE_TO:int = 1`

Indicates a drawing command that moves the current drawing position to the x and y coordinates specified in the data vector. When executed, this command has the same effect as the `Graphics.moveTo()` method. Uses 1 point in the data vector (x,y).

See also

flash.display.Graphics.moveTo()

NO_OP | Constant |

`public static const NO_OP:int = 0`

Represents the default "do nothing" command.

WIDE_LINE_TO | Constant |

`public static const WIDE_LINE_TO:int = 5`

Specifies a "line to" drawing command, but uses two sets of coordinates instead of one. Allows switching between "line to" and "curve to" commands without changing the number of data values used per command. Uses two points in the data vector: one dummy point and then one (x,y) point.

The `WIDE_LINE_TO` and `WIDE_MOVE_TO` command variants consume the same number of parameters as does the `CURVE_TO` command.

See also

LINE_TO
flash.display.Graphics.lineTo()

WIDE_MOVE_TO | Constant |

`public static const WIDE_MOVE_TO:int = 4`

Specifies a "move to" drawing command, but uses two sets of coordinates instead of one. Allows switching between "move to" and "curve to" commands without changing the number of data values used per command. Uses two points in the data vector: one dummy point and then one (x,y) point.

The `WIDE_LINE_TO` and `WIDE_MOVE_TO` command variants consume the same number of parameters as does the `CURVE_TO` command.

See also

MOVE_TO
flash.display.Graphics.moveTo()

Submit Feedback on LiveDocs
© 2004-2008 Adobe Systems Incorporated. All rights reserved.
Tue May 20 2008, 04:02 AM -07:00