[flex] 怎样通过Combox的隐藏值控制显示值

Asdpboy 2008-06-07
<mx:ComboBox x="248" y="109" id="myCom"></mx:ComboBox>
<mx:Script>
<![CDATA[
private function initApp():void{
var array : Array = new Array({label:"AAAA",data:1},{label:"BBBB",data:2},{label:"CCCC",data:3},{label:"DDDD",data:4});
myCom.dataProvider = array ;
myCom.selectedIndex = 3 ;
}
]]>
</mx:Script>
怎样通过data的值来控制combox的显示值
flysnail 2008-06-07
用dataField
Global site tag (gtag.js) - Google Analytics