User Guide
226 Chapter 9: Using Flash, Flash Components, and Other Interactive Media Types
TextInput component parameters
The following are authoring parameters that you can set for each TextInput component instance
in the Property inspector or in the Component Inspector panel:
text specified the contents of the TextInput. You cannot enter carriage returns in the Property
inspector or Component Inspector panel. The default value is "" (empty string).
editable indicates whether the TextInput component is editable (true) or not (false). The default
value is true.
password indicates whether the field is a password field (true) or not (false). The default value
is false.
You can write scripts to control these and additional options for TextInput components using its
properties, methods, and events. For more information, see “TextInput class” in the Flash
documentation.
Customizing the TextInput component
When a TextInput component is resized, the border is resized to the new bounding box. The
TextInput component doesn’t use scroll bars, but the insertion point scrolls automatically as the
user interacts with the text. The text field is then resized within the remaining area; there are no
fixed-size elements in a TextInput component. If the TextInput component is too small to display
the text, the text is clipped.
Using styles with the TextInput component
A TextInput component supports the following styles:
Property summary for the TextInput class
Style Description
color
The default color for text.
fontFamily
The font name for text.
fontSize
The point size for the font.
fontStyle
The font style, either "normal",or "italic".
fontWeight
The font weight, either "normal" or "bold".
textAlign
The text alignment: either "left", "right", or "center".
textDecoration
The text decoration, either "none" or "underline".
Property Description
TextInput.editable
A Boolean value indicating whether the field is editable (true) or
not (
false).
TextInput.hPosition
The horizontal scrolling position of the text field.
TextInput.length
The number of characters in a TextInput text field. This property is
read only.