User Guide
Element object 197
Example
See element.getPersistentData().
element.height
Availability
Flash MX 2004.
Usage
element.height
Description
Property; a float value that specifies the height of the element in pixels.
Example
The following example sets the height of the specified element to 100:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].height =
100;
element.layer
Availability
Flash 8.
Usage
element.layer
Description
Read-only property; represents the Layer object on which the element is located.
Example
The following example stores the Layer object that contains the element in the theLayer
variable:
var theLayer = element.layer;
NOTE
Do not use this property to resize a text field. Instead, select the text field and use
document.setTextRectangle(). Using this property with a text field scales the text.