element.width
Availability
Flash MX 2004.
Usage
element.width
Description
Property; a float value that specifies the width 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()
Example
The following example sets the width of the specified element to 100:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].width= 100;
156
Chapter 3: Objects
. Using this property with a text field scales the text.
Need help?
Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?
Questions and answers