循环剔除ArrayCollection项

循环删除ArrayCollection项public function init():void{for(var i:int0iac.lengthi++){var item:Obje

循环删除ArrayCollection项

public function init():void{        for(var i:int=0;i<ac.length;i++){        var item:Object=ac.getItemAt(i);        if(item.sex=="女"){        ac.removeItemAt(i);        i--;        }        }        }



http://yunzhongxia.iteye.com/blog/615001