TextInput.maxChars

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004.

Usage

textInputInstance.maxChars

Description

Property; the maximum number of characters that the text field can contain. A script may insert more text than the maxChars property allows; the maxChars property only indicates how much text a user can enter. If the value of this property is null, there is no limit to the amount of text a user can enter. The default value is null.

Example

The following example limits the number of characters a user can enter to 255:

myTextInput.maxChars = 255;