
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.
Содержание DIRECTOR MX 2004-USING DIRECTOR
Страница 1: ...DIRECTOR MX 2004 Using Director...
Страница 16: ...16 Chapter 1 Introduction...
Страница 82: ...82 Chapter 3 Sprites...
Страница 98: ...98 Chapter 4 Animation...
Страница 134: ...134 Chapter 5 Bitmaps...
Страница 242: ...242 Chapter 10 Sound and Synchronization...
Страница 274: ...274 Chapter 11 Using Digital Video...
Страница 290: ...290 Chapter 12 Behaviors...
Страница 302: ...302 Chapter 13 Navigation and User Interaction...
Страница 334: ...334 Chapter 15 The 3D Cast Member 3D Text and 3D Behaviors...
Страница 392: ...392 Chapter 16 Working with Models and Model Resources...
Страница 418: ...418 Chapter 18 Movies in a Window...
Страница 446: ...446 Chapter 22 Managing and Testing Director Projects...