User Guide
152 Chapter 3: Objects
Returns
A Boolean value: true if the specified data is attached to the object; false otherwise.
Description
Method; determines whether the specified data has been attached to the specified element. Only
symbols and bitmaps support persistent data.
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.
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.
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.left
Availability
Flash MX 2004.
Usage
element.left
Description
Read-only property; a float value that represents the left side of the element. The value of
element.left is relative to the upper left of the Stage for elements that are in a scene, and is
relative to the symbol’s registration point if the element is stored within a symbol.Use
document.setSelectionBounds() or document.moveSelectionBy() to set this property.
Example
The following example illustrates how the value of this property changes when an element is
moved:
//Select an element on the stage and then run this script
var sel = fl.getDocumentDOM().selection[0];