Example
The following example stores the first control point of the specified shape in the
var shape = fl.getDocumentDOM().selection[0];
var pt = shape.edges[0].getControl(0);
edge.getHalfEdge()
Availability
Flash MX 2004.
Usage
edge.getHalfEdge(index)
Parameters
An integer that specifies which half edge to return. The value of
index
for the first half edge or 1 for the second half edge.
Returns
A HalfEdge object.
Description
Method; returns a
Example
The following example stores the half edges of the specified edge in the
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
variable:
var shape = fl.getDocumentDOM().selection[0];
var my_shape_id = shape.edges[0].id;
HalfEdge
object.
variable:
pt
must be either 0
index
and
hEdge0
hEdge0
my_shape_id
Edge object
143
Need help?
Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?