User Guide

Text object 309
Description
Property; a string that is equivalent to the Name field in the Accessibility panel. Screen readers
identify objects by reading the name aloud. This property cannot be used with dynamic text.
Example
The following example retrieves the name of the object:
var theName =
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].accName;
The following example sets the name of the currently selected object:
fl.getDocumentDOM().selection[0].accName = "Home Button";
text.autoExpand
Availability
Flash MX 2004.
Usage
text.autoExpand
Description
Property; a Boolean value. For static text fields, a value of true causes the bounding width to
expand to show all text. For dynamic or input text fields, a value of
true causes the bounding
width and height to expand to show all text.
Example
The following example sets the autoExpand property to a value of true:
fl.getDocumentDOM().selection[0].autoExpand = true;
text.border
Availability
Flash MX 2004.
Usage
text.border
Description
Property; a Boolean value. A value of true causes Flash to show a border around dynamic or
input text. This property generates a warning if used with static text.
Example
The following example sets the border property to a value of true:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].border =
true;