Adobe® Flex® 4 Language Reference
Show Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
flash.display 
GraphicsPathCommand 
Packageflash.display
Classpublic final class GraphicsPathCommand
InheritanceGraphicsPathCommand Inheritance Object

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Defines the values to use for specifying path-drawing commands.

The values in this class are used by the Graphics.drawPath() method, or stored in the commands vector of a GraphicsPath object.

See also



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined By
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Public Constants
 ConstantDefined 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] Specifies 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] Specifies 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 (four values) instead of one set.
GraphicsPathCommand
  WIDE_MOVE_TO : int = 4
[static] Specifies a "move to" drawing command, but uses two sets of coordinates (four values) instead of one set.
GraphicsPathCommand
Constant Detail

CURVE_TO

Constant
public static const CURVE_TO:int = 3

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

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. This command produces the same effect as the Graphics.lineTo() method, and uses two points in the data vector control and anchor: (cx, cy, ax, ay ).

See also

LINE_TO

Constant 
public static const LINE_TO:int = 2

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Specifies a drawing command that draws a line from the current drawing position to the x- and y-coordinates specified in the data vector. This command produces the same effect as the Graphics.lineTo() method, and uses one point in the data vector: (x,y).

See also

MOVE_TO

Constant 
public static const MOVE_TO:int = 1

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Specifies a drawing command that moves the current drawing position to the x- and y-coordinates specified in the data vector. This command produces the same effect as the Graphics.moveTo() method, and uses one point in the data vector: (x,y).

See also

NO_OP

Constant 
public static const NO_OP:int = 0

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Represents the default "do nothing" command.

WIDE_LINE_TO

Constant 
public static const WIDE_LINE_TO:int = 5

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Specifies a "line to" drawing command, but uses two sets of coordinates (four values) instead of one set. This command allows you to switch between "line to" and "curve to" commands without changing the number of data values used per command. This command uses two sets in the data vector: one dummy location and one (x,y) location.

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

See also

WIDE_MOVE_TO

Constant 
public static const WIDE_MOVE_TO:int = 4

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Specifies a "move to" drawing command, but uses two sets of coordinates (four values) instead of one set. This command allows you to switch between "move to" and "curve to" commands without changing the number of data values used per command. This command uses two sets in the data vector: one dummy location and one (x,y) location.

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

See also