User Guide
Edge object 143
Example
The following example stores the first control point of the specified shape in the pt variable:
var shape = fl.getDocumentDOM().selection[0];
var pt = shape.edges[0].getControl(0);
edge.getHalfEdge()
Availability
Flash MX 2004.
Usage
edge.getHalfEdge(index)
Parameters
index
An integer that specifies which half edge to return. The value of index must be either 0
for the first half edge or 1 for the second half edge.
Returns
A HalfEdge object.
Description
Method; returns a HalfEdge object.
Example
The following example stores the half edges of the specified edge in the hEdge0 and hEdge0
variables:
var shape = fl.getDocumentDOM().selection[0];
var edge = shape.edges[0];
var hEdge0 = edge.getHalfEdge(0);
var hEdge1 = edge.getHalfEdge(1);
edge.id
Availability
Flash MX 2004.
Usage
edge.id
Description
Read-only property; an integer that represents a unique identifier for the edge.
Example
The following example stores a unique identifier for the specified edge in the my_shape_id
variable:
var shape = fl.getDocumentDOM().selection[0];
var my_shape_id = shape.edges[0].id;