|
|
|
|
| Tutorial |
ListBox parameters
You set the following parameters for each list box instance in your Flash document using the
Parameters tab on the Property inspector or the Component Parameters panel.
Change Handler is the name of the function that you want to call when the user selects an item in
the list box. This function must be defined in the same Timeline as the instance of the list box.
This parameter is optional and only needs to be specified if you want an action to occur when the
user selects an item in the combo box. For more information, see “Writing change handler
functions for components” on page 304 and the FListBox.setChangeHandler method entry in
the online ActionScript Dictionary in the Help menu..
Data is an array of text strings specifying the values associated with the items (labels) in the list
box. You enter the text strings for the array using the Values dialog box or using the
FListBox.addItem or FListBox.addItemAt methods to add items at runtime.
Labels is an array of text strings specifying the items in the list box. You enter the text strings for
the array using the Values dialog box or using the FListBox.addItem or FListBox.addItemAt
methods to add items at runtime.
Select Multiple specifies whether the user is allowed to select more than one item in the list box
(true) or not (false). The default setting is false.
You can set additional options and functionality for list box instances using the methods of the
FListBox (component) in the online ActionScript Dictionary.
Sizing ListBox components
You can change the width and height of list box instances using the Free Transform tool during
authoring, or at runtime using the FListBox.setSize or FListBox.setWidth methods. The
width of the list box instance is determined by the width of the bounding box. If the text of the list
items is too long to fit inside the bounding box, the text is truncated. The height of the list box
instance is automatically adjusted to display entire lines of text without increasing the size of the box,
which may result in the list box being slightly smaller than the specified height, but never larger.
ListBox skins
The ListBox component shares the skins in the FScrollBar Skins and Global Skins folders in the
Component Skin folder in the library with all other components that use scroll bars and
bounding boxes. Customizing any of the skins in the FScrollBar or Global Skins folders affects all
ComboBox, ListBox, ScrollBar and ScrollPane component instances in the Flash document. For
more information, see “Customizing component skins”.
The PushButton component
The PushButton component lets you add simple push buttons to your Flash movie. The
PushButton component accepts all standard mouse and keyboard interactions, and has an
onClick parameter that allows you to easily specify a handler to execute actions when the button
is released. You can use the methods of the FPushButton component to disable or enable the
button, and resize the button without distortion at runtime. For more information, see the
FPushButton (component) entry in the online ActionScript Dictionary in the Help menu.
|
|
|
|
|
|
| Link Partners: Asia florist, Flowers to India, Hong kong flowers, Site submit, Cheap web hosting, China florist, Japan florist |
|