Textinput Class - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Using skins with the TextInput component
The TextArea component uses an instance of RectBorder for its border. For more information
about skinning these visual elements, see
"RectBorder class" on page
1063.

TextInput class

Inheritance
MovieClip >
UIObject class
>
UIComponent class
> TextInput
ActionScript Class Name
mx.controls.TextInput
The properties of the TextInput class let you set the text content, formatting, and horizontal
position at runtime. You can also indicate whether the field is editable, and whether it is a
"password" field. You can also restrict the characters that a user can enter.
Setting a property of the TextInput class with ActionScript overrides the parameter of the
same name set in the Property inspector or Component inspector.
The TextInput component uses the Focus Manager to override the default Flash Player focus
rectangle and draw a custom focus rectangle with rounded corners. For more information, see
"FocusManager class" on page
721.
The TextInput component supports CSS styles and any additional HTML styles supported
by Flash Player. For information about CSS support, see the W3C specification at
www.w3.org/TR/REC-CSS2/.
You can manipulate the text string by using the string returned by the text object.
Each component class has a
property, which is a class property. Class properties are
version
available only on the class itself. The
property returns a string that indicates the
version
version of the component. To access this property, use the following code:
trace(mx.controls.TextInput.version);
The code
returns
.
trace(myTextInputInstance.version);
undefined
1214
TextInput component

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents