如何在 flex as3 中迭代模型列表我的代码:
var list:ArrayList=new ArrayList();
var per:Person=new Person();
per.person_id=1;
per.fname="james";
per.userid="12";
list.addItem(per);
for each (var p:Person in list)
{
trace("name----------"+p.fname);
}
但上面的迭代器不起作用......如何迭代这个?