Edge object
187
Example
The following example stores the half edges of the specified edge in the
hEdge0
and
hEdge1
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;
edge.isLine
Availability
Flash MX 2004.
Usage
edge.isLine
Description
Read-only property; an integer with a value of 0 or 1. A value of 1 indicates that the edge is a
straight line. In that case, the middle control point bisects the line joining the two end points.
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...