I did a post the other day on “Displaying icons in a Flex List control”, and figured since the ComboBox control uses the List control internally for the dropdown menu, making the ComboBox control display icons also should be pretty trivial. Well, after about 2 minutes of analyzing the documentation, it turns out it is pretty simple. The trick was to set the
iconField property on the ComboBox instance’s
dropdown property, which is a reference to the combo box’s internal List control.
Full code after the jump.