如何将addItem添加到actionscript中的ArrayList

时间:2013-03-14 08:26:11

标签: actionscript-3 arraylist

我有一些数组:

var dataProvider:IList = new ArrayList();
var labelArr:Array = [IT, Business, Doctor, Teacher, Engineer, IT, Business, Doctor, Teacher, Engineer];
var valueArr:Array = [50,46,64,85,98,37,58,48,14,28];

dataArr.addItem()如何从两个数组到arrayList,结果数据如下:

dataProvider = ([
           {data:[
               {label:'IT', value: 50},
               {label:'Business', value: 46},
               {label:'Doctor', value: 64},
               {label:'Teacher', value: 85},
               {label:'Engineer', value: 98} ]},
           {data:[
               {label:'IT', value: 37},
               {label:'Business', value: 58},
               {label:'Doctor', value: 48},
               {label:'Teacher', value: 14},
               {label:'Engineer', value: 28} ]}
           ]);

我想要上面的结果来获取绘图的数据数组

0 个答案:

没有答案