您的位置:首页 > 其它

FLEX/SELECTBOX

2013-11-22 12:57 134 查看
下拉菜单赋值

[Bindable]

private var subjectDataProvider:ArrayCollection = new ArrayCollection([

{label:"Standard",data:1},

{label:"Clock",data:2}

])

<mx:HBox width="100%" height="100%">

<mx:ComboBox id="subject" width="150" labelField="label" dataProvider="{subjectDataProvider}" prompt="" />

</mx:HBox>

取出ArrayCollection中某字段的值

tempList = httpData.getDataToArrayCollection("TEMP_LIST");

save_interval.text = tempList[0]["save_interval"]; //第一行的save_interval字段的值

下拉菜单根据指定的值被选中

subject.selectedIndex = 1;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: