User Guide
390 Objects
Example
The following example stores the first contour in the contours array in the c variable and then
stores the HalfEdge object of that contour in the
he variable:
var c = fl.getDocumentDOM().selection[0].contours[0];
var he = c.getHalfEdge();
shape.deleteEdge()
Availability
Flash MX 2004.
Usage
shape.deleteEdge( index )
Parameters
index A zero-based index that specifies the edge to delete from the shape.edges array.
This method changes the length of the
shape.edges array.
Returns
Nothing.
Description
Method; deletes the specified edge. You must call shape.beginEdit() before using this
method.
Example
The following example takes the currently selected shape and removes the first edge in the
edge array:
var shape = fl.getDocumentDOM().selection[0];
shape.beginEdit();
shape.deleteEdge(0);
shape.endEdit();
shape.edges
Availability
Flash MX 2004.
Usage
shape.edges