User Guide
164 ComboBox component
The following example demonstrates how to use List styles to control the behavior of the pop-
up portion of a ComboBox component.
// comboBox is an instance of the ComboBox component on Stage.
comboBox.setStyle("alternatingRowColors", [0xFFFFFF, 0xBFBFBF]);
Using skins with the ComboBox component
The ComboBox component uses symbols in the library to represent the button states and has
skin variables for the down arrow. These skins are located in the Flash UI Components 2/
Themes/MMDefault/ComboBox Assets/States folder of the HaloTheme.fla and
SampleTheme.fla files. The information below describes these skins and provides steps for
customizing them.
The ComboBox component also uses scroll bar skins for the drop-down list’s scroll bar and
two RectBorder class instances for the border around the text input and drop-down list. For
information on customizing these skins, see “Using skins with the UIScrollBar component”
on page 1394 and “RectBorder class” on page 1063. For more information on the methods
available to skin components, see “About skinning components” in Using Components.
A ComboBox component uses the following skin properties:
openDuration
Both The duration, in milliseconds, of the transition
animation. The default value is 250.
openEasing
Both A reference to a tweening function that controls the
animation. Defaults to sine in/out. For more information,
see “Customizing component animations” in Using
Components.
Property Description
ComboDownArrowDisabledName
The down arrow’s disabled state. The default is
ComboDownArrowDisabled.
ComboDownArrowDownName
The down arrow’s down state. The default is
ComboDownArrowDown.
ComboDownArrowUpName
The down arrow’s up state. The default is ComboDownArrowOver.
ComboDownArrowOverName
The down arrow’s over state. The default is ComboDownArrowUp.
Style Theme Description