flex中arrayCollection的遍历和获得值?
var submitList:ArrayCollection = new ArrayCollection;
for each (var item:Object in useroperate)
{
if (item.selected)
submitList.addItem(item.id);
}
useroperate是一个ArrayCollection类型,里面有很多值
目的是为了便利useroperate 来获得里面id所对于的值
但上面的方法不能够过的
测试过useroperate里面有值
还有没有别的方法来获得useroperate里面id所对应的值