ComboBox parameters

You can set the following authoring parameters for each ComboBox component instance in the Property inspector or in the Component inspector (Window > Component Inspector menu option):

data associates a data value with each item in the ComboBox component. The data parameter is an array.

editable determines if the ComboBox component is editable (true) or only selectable (false). The default value is false.

labels populates the ComboBox component with an array of text values.

rowCount sets the maximum number of items that can be displayed in the list. The default value is 5.

You can set the following additional parameters for each ComboBox component instance in the Component inspector (Window > Component Inspector):

restrict indicates the set of characters that a user can enter in the text field of a combo box. The default value is undefined. See ComboBox.restrict.

enabled is a Boolean value that indicates whether the component can receive focus and input. The default value is true.

visible is a Boolean value that indicates whether the object is visible (true) or not (false). The default value is true.

NOTE

The minHeight and minWidth properties are used by internal sizing routines. They are defined in UIObject, and are overridden by different components as needed. These properties can be used if you make a custom layout manager for your application. Otherwise, setting these properties in the Component inspector has no visible effect.

You can write ActionScript to set additional options for ComboBox instances using the methods, properties, and events of the ComboBox class. For more information, see ComboBox class.