Shape.deleteedge(), Shape.edges, Shape.endedit() – Adobe Extending Flash Professional CS5 User Manual
Page 404
382
EXTENDING FLASH PROFESSIONAL
Shape object
Last updated 5/2/2011
shape.deleteEdge()
Availability
Flash MX 2004.
Usage
shape.deleteEdge(index)
Parameters
index
A zero-based index that specifies the edge to delete from the
array. This method changes the length
of the
shape.edges
array.
Returns
Nothing.
Description
Method; deletes the specified edge. You must call
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
Description
Read-only property; an array of Edge objects (see
).
shape.endEdit()
Availability
Flash MX 2004.
Usage
shape.endEdit()