User Guide

388 Objects
Shape object
Inheritance Element object > Shape object
Availability
Flash MX 2004.
Description
The Shape object is a subclass of the Element object. The Shape object provides more precise
control than the Drawing APIs when manipulating or creating geometry on the Stage. This
control is necessary so that scripts can create useful effects and other drawing commands. (See
Element object.)
All Shape methods and properties that change a shape or any of its subordinate parts must be
placed between
shape.beginEdit() and shape.endEdit() calls to function correctly.
Method summary for the Shape object
In addition to the Element object methods, you can use the following methods with the
Shape object:
Property summary for the Shape object
In addition to the Element object properties, the following properties are available for the
Shape object:
Method Description
shape.beginEdit() Defines the start of an edit session.
shape.deleteEdge() Deletes the specified edge.
shape.endEdit() Defines the end of an edit session for the shape.
Property Description
shape.contours Read-only; an array of Contour objects for the shape (see Contour
object).
shape.edges Read-only; an array of Edge objects (see Edge object).
shape.isDrawingObject Read-only; if true, the shape is a drawing object.
shape.isGroup Read-only; if true, the shape is a group.
shape.vertices Read-only; an array of Vertex objects (see Vertex object).
CHAPTER 35
Objects