TextArea.length

Availability

Flash Player 6.0.79.

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