User Guide

TextField.length 731
Example
The following example creates a text field that sets the html property to true. HTML-formatted
text displays in the text field.
this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 160, 22);
my_txt.html = true;
my_txt.htmlText = "<b> this is bold text </b>";
See also
TextField.htmlText
TextField.htmlText
Availability
Flash Player 6.
Usage
my_txt.htmlText:String
Description
Property; if the text field is an HTML text field, this property contains the HTML representation
of the text field’s contents. If the text field is not an HTML text field, it behaves identically to the
text property. You can indicate that a text field is an HTML text field in the Property inspector,
or by setting the text field’s
html property to true.
Example
The following example creates a text field that sets the html property to true. HTML-formatted
text displays in the text field.
this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 160, 22);
my_txt.html = true;
my_txt.htmlText = "<b> this is bold text </b>";
See also
TextField.html
TextField.length
Availability
Flash Player 6.
Usage
my_txt.length:Number
Returns
A number.
Description
Read-only property; indicates the number of characters in a text field. This property returns the
same value as
text.length, but is faster. A character such as tab (\t) counts as one character.