
181
Chapter 13: Edge object
Availability
Flash MX 2004.
Description
The Edge object represents an edge of a shape on the Stage.
Method summary
The following methods are available for the Edge object:
Property summary
The following properties are available for the Edge object:
edge.cubicSegmentIndex
Availability
Flash CS4 Professional.
Usage
edge.cubicSegmentIndex
Description
Read-only property; an integer that specifies the index value of a cubic segment of the edge (see
shape.getCubicSegmentPoints()).
Example
The following code displays the index values of all the cubic segments of the specified edge:
Method Description
edge.getControl() Gets a point object set to the location of the specified control point of the edge.
edge.getHalfEdge() Returns a HalfEdge object.
edge.setControl() Sets the position of the control point of the edge.
edge.splitEdge() Splits the edge into two pieces.
Property Description
edge.cubicSegmentIndex An integer that specifies the index value of a cubic segment of the edge.
edge.id Read-only; an integer that represents a unique identifier for the edge.
edge.isLine Read-only; an integer with a value of 0 or 1.
edge.stroke A Stroke object.
Commenti su questo manuale