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:
Style
color
fontFamily
fontSize
fontStyle
fontWeight
textAlign
textDecoration
Property summary for the TextInput class
Property
TextInput.editable
TextInput.hPosition
TextInput.length
226
Chapter 9: Using Flash, Flash Components, and Other Interactive Media Types
Description
The default color for text.
The font name for text.
The point size for the font.
The font style, either "normal",or "italic".
The font weight, either "normal" or "bold".
The text alignment: either "left", "right", or "center".
The text decoration, either "none" or "underline".
Description
A Boolean value indicating whether the field is editable (
not (
).
false
The horizontal scrolling position of the text field.
The number of characters in a TextInput text field. This property is
read only.
) or
true
Need help?
Do you have a question about the DIRECTOR MX 2004-USING DIRECTOR and is the answer not in the manual?
Questions and answers