Using Components > The ComboBox component > ComboBox parameters |  |

ComboBox parameters

You can set the following parameters for each combo box instance in your Flash document using the Parameters tab on the Property inspector or the Component Parameters panel.

Change Handler is a text string specifying a function to call when a user selects an item or enters text in the input field. The function must be defined in the same Timeline as the combo box instance, and may accept the instance name of the combo box as a parameter. This parameter is optional and needs to be specified only if you want an action to take place when the user selects an item or enters text in the combo box and uses the Enter key. For more information, see Writing change handler functions for components and the FComboBox.setChangeHandler 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 combo box. You enter the text strings for the array using the Values dialog box.

Editable determines whether the combo box is editable or static. Editable combo boxes allow users to enter text in a field to search for the matching item in the scroll list, as well as to scroll through the list and select items. Static combo boxes allow users only to scroll through the list and select items.

Labels is an array of text strings specifying the items displayed in the combo box. You enter the text strings for the array using the Values dialog box.

Row Count is the number of items displayed in the combo box before the scroll bar is displayed. The default value for this parameter is 8.

You can set additional options and functionality for combo box instances using the methods of the FComboBox (component). For more information, see the entry for the FComboBox component in the online ActionScript Dictionary.