User Guide
752 Chapter 6: Components Dictionary
Usage
textInputInstance.hPosition
Description
Property; defines the horizontal position of the text in the field. The default value is 0.
Example
The following code displays the leftmost character in the field:
myTextInput.hPosition = 0;
TextInput.length
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
inputInstance.length
Description
Property (read-only); a number that indicates the number of characters in a TextInput
component. A character such as tab (
"\t") counts as one character. The default value is 0.
Example
The following code determines the number of characters in the myTextInput string and copies it
to the
length variable:
var length = myTextInput.length;
TextInput.maxChars
Availability
Flash Player 6 (6.0 79.0).
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; this property indicates only how much text a user
can enter. If this property is
null, there is no limit to the amount of text a user can enter. The
default value is
null.