TextField.maxChars
Availability
Flash Player 6.
Usage
my_txt.maxChars:Number
Description
Property; indicates the maximum number of characters that the text field can contain. A script
may insert more text than
a user can enter. If the value of this property is
can enter.
Example
The following example creates a text field called
numbers in the field.
this.createTextField("age_txt", this.getNextHighestDepth(), 10, 10, 30, 22);
age_txt.type = "input";
age_txt.border = true;
age_txt.maxChars = 2;
age_txt.restrict = "0-9";
894
Chapter 2: ActionScript Language Reference
allows; the
maxChars
maxChars
null
property indicates only how much text
, there is no limit on the amount of text a user
that only lets users enter up to two
age_txt
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?