User Guide
TextField.type 757
trace("after my_txt.autoSize = true;");
trace("_height: "+my_txt._height+", _width: "+my_txt._width);
Which outputs the following information:
textHeight: 15, textWidth: 56
_height: 300, _width: 100
after my_txt.autoSize = true;
_height: 19, _width: 60
See Also
TextField.textWidth
TextField.textWidth
Availability
Flash Player 6.
Usage
my_txt.textWidth:Number
Description
Property; indicates the width of the text.
Example
See the example for TextField.textHeight.
See Also
TextField.textHeight
TextField.type
Availability
Flash Player 6.
Usage
my_txt.type:String
Description
Property; Specifies the type of text field. There are two values: "dynamic", which specifies a
dynamic text field that cannot be edited by the user, and
"input", which specifies an input
text field.
Example
The following example creates two text fields: username_txt and password_txt. Text is entered
into both text fields; however,
password_txt has the password property set to true. Therefore,
the characters display as asterisks instead of as characters in the
password_txt field.
this.createTextField("username_txt", this.getNextHighestDepth(), 10, 10, 100,
22);