User Guide

TextArea component 735
TextArea.html
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
textAreaInstance.html
Description
Property; a Boolean value that indicates whether the text field is formatted with HTML (true) or
not (
false). If the html property is true, the text field is an HTML text field. If html is false,
the text field is a non-HTML text field. The default value is
false.
Example
The following example makes the myTextArea field an HTML text field and then formats the
text with HTML tags:
myTextArea.html = true;
myTextArea.text = "The <b>Royal</b> Nonesuch"; // displays "The Royal
Nonesuch"
TextArea.length
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
textAreaInstance.length
Description
Property (read-only); indicates the number of characters in a text field. This property returns the
same value as the ActionScript
text.length property, but is faster. A character such as tab
(
"\t") counts as one character. The default value is 0.
Example
The following example gets the length of the text field and copies it to the length variable:
var length = myTextArea.length; // find out how long the text string is