推荐于2016-09-19
展开全部
flex 怎么动态添加radioButton组件
仅供参考哦
layout="vertical" creationComplete="init()">
import mx.collections.ArrayCollection;
public var arr:Array = [
{key:'1', value:'value1'}
,{key:'2', value:'value2'}
];
public var arrAdd:Array = [
{key:'1', value:'value1'}
,{key:'2', value:'value2'}
,{key:'3', value:'value3'}
,{key:'4', value:'value4'}
];
[Bindable]
public var arrC:ArrayCollection;
public function init():void{
arrC = new ArrayCollection(arr);
}
public function changeAdd():void{
arrC = new ArrayCollection(arrAdd);
}
public function changeDel():void{
arrC = new ArrayCollection(arr);
}
]]>
100%" width="100%" fontFamily="Arial" layout="absolute">
仅供参考哦
layout="vertical" creationComplete="init()">
import mx.collections.ArrayCollection;
public var arr:Array = [
{key:'1', value:'value1'}
,{key:'2', value:'value2'}
];
public var arrAdd:Array = [
{key:'1', value:'value1'}
,{key:'2', value:'value2'}
,{key:'3', value:'value3'}
,{key:'4', value:'value4'}
];
[Bindable]
public var arrC:ArrayCollection;
public function init():void{
arrC = new ArrayCollection(arr);
}
public function changeAdd():void{
arrC = new ArrayCollection(arrAdd);
}
public function changeDel():void{
arrC = new ArrayCollection(arr);
}
]]>
100%" width="100%" fontFamily="Arial" layout="absolute">
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询