User Guide

Element object 193
Element object
Availability
Flash MX 2004.
Description
Everything that appears on the Stage is of the type Element. The following code example lets
you select an element:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0];
Method summary for the Element object
The following methods are available for the Element object:
Property summary for the Element object
The following properties are available for the Element object:
Method Description
element.getPersistentData() Retrieves the value of the data specified by the name
parameter.
element.hasPersistentData() Determines whether the specified data has been attached
to the specified element.
element.removePersistentData() Removes any persistent data with the specified name that
has been attached to the object.
element.setPersistentData() Stores data with an element.
Property Description
element.depth Read-only; an integer that has a value greater than 0 for the
depth of the object in the view.
element.elementType Read-only; a string that represents the type of the specified
element.
element.height A float value that specifies the height of the element in
pixels.
element.layer Read-only; represents the Layer object on which the
element is located.
element.left Read-only; a float value that represents the left side of the
element.
CHAPTER 13
Objects