User Guide

142 Chapter 3: Objects
Edge object
Availability
Flash MX 2004.
Description
The Edge object represents an edge of a shape on the Stage.
Method summary for the Edge object
The following methods are available for the Edge object:
Property summary for the Edge object
The following properties are available for the Edge object:
edge.getControl()
Availability
Flash MX 2004.
Usage
edge.getControl(i)
Parameters
i
An integer that specifies which control point of the edge to return. Specify 0 for the first
control point, 1 for the middle control point, or 2 for the end control point. If the
edge.isLine
property is
true, the middle control point is set to the midpoint of the segment joining the
beginning and ending control points.
Returns
The specified control point.
Description
Method; gets a point object set to the location of the specified control point of the edge.
Method Description
edge.getControl() Method; gets a point object set to the location of the specified control point of
the edge.
edge.getHalfEdge() Method; returns a HalfEdge object.
edge.setControl() Method; sets the position of the control point of the edge.
edge.splitEdge() Method; splits the edge into two pieces.
Property Description
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.
CHAPTER 3
Objects