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