Using Components > The ListBox component > ListBox parameters |
![]() ![]() ![]() |
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 and FListBox.setChangeHandler
in the ActionScript Dictionary.
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 ActionScript Dictionary.
![]() ![]() ![]() |