I want to seperate arraycollection based on string in flex .
i have an arraycollection items look like {[(name:aa),(name:bb),(name:ae),(name:cc),(name:bd)}]
,
now i want to seperate this arraycollection based on 'a' and all 'a' items to be add in seperate arraycollection.
Arraycollection declaration like
[Bindable]
public var arr:ArrayCollection=new ArrayCollection([{name:"cards/a.png"},{name:"cards/b.png"},{name:"cards/ac.png"},{name:"af.png"},{name:"ad.png"},{name:"cards/bb.png"}]);