
190
EXTENDING FLASH CS4 PROFESSIONAL
Element object
Usage
element.hasPersistentData(name)
Parameters
name A string that specifies the name of the data item to test.
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.
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.layer
Availability
Flash 8.
Usage
element.layer
Description
Read-only property; represents the Layer object on which the element is located.
Comentários a estes Manuais