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
Example
The following example outputs the number of characters in the
displays the current date.
var today:Date = new Date();
this.createTextField("date_txt", this.getNextHighestDepth(), 10, 10, 100, 22);
date_txt.autoSize = true;
date_txt.text = today.toString();
trace(date_txt.length);
, but is faster. A character such as tab (
) counts as one character.
\t
text field, which
date_txt
TextField.length
893
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?