ComboBox-based custom component
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="white"> <mx:ComboBox> <mx:dataProvider> <mx:Object stateCode="AK" label="Alaska" /> <mx:Object stateCode="AL" label="Alabama" /> </mx:dataProvider> </mx:ComboBox> </mx:Application>