User Guide

TextInput component 225
Property summary for the TextArea class
Event summary for the TextArea class
TextInput component
The TextInput is a single-line component that wraps the native ActionScript TextField object.
You can use styles to customize the TextInput component; when an instance is disabled its
contents display in a color represented by the disabledColor” style. A TextInput component can
also be formatted with HTML, or as a password field that disguises the text.
You can use a TextInput component wherever you need a single-line text field. If you need a
multiline text field, use the TextArea component” on page 224. For example, you could use a
TextInput component as a password field in a form. You could set up a listener that checks if field
has enough characters when a user tabs out of the field. That listener could display an error
message indicating that the proper number of characters must be entered.
Property Description
TextArea.editable
A Boolean value indicating whether the field is editable (true) or
not (
false).
TextArea.hPosition
Defines the horizontal position of the text within the scroll pane.
TextArea.hScrollPolicy
Indicates whether the horizontal scroll bar is always on ("on"), never on
(
"off"), or turns on when needed ("auto").S
TextArea.html
A flag that indicates whether the text field can be formatted with HTML.
TextArea.length
The number of characters in the text field. This property is read-only.
TextArea.maxChars
The maximum number of characters that the text field can contain.
TextArea.maxHPosition
The maximum value of TextArea.hPosition.
TextArea.maxVPosition
The maximum value of TextArea.vPosition.
TextArea.password
A Boolean value indicating whether the field is a password field (true) or
not (
false).
TextArea.restrict
The set of characters that a user can enter into the text field.
TextArea.text
The text contents of a TextArea component.
TextArea.vPosition
A number indicating the vertical scrolling position
TextArea.vScrollPolicy
Indicates whether the vertical scroll bar is always on ("on"), never on
(
"off"), or turns on when needed ("auto").S
TextArea.wordWrap
A Boolean value indicating whether the text wraps (true) or not (false).
Event Description
TextArea.change
Notifies listeners that text has changed.