[Bindable]
public var cards:ArrayCollection = new ArrayCollection([
{label:"china",data:1},
{label:"USA",data:2},
{label:"England",data:3}
]);
protected function country_changeHandler(event:ListEvent):void
{
Alert.show(country.selectedItem.data);
}
]]-->
</fx:Script>
<fx:Declarations>
<!-- 将非可视元素(例如服务、值对象)放在此处 -->
</fx:Declarations>
<mx:ComboBox id="country" dataProvider="{cards}" change="country_changeHandler(event)" x="106" y="86"/>
</s:Application>