Reputation:
I want to retrieve selected items from ArrayCollection by using start index and end index, is there any predefined method to do this... Thanks in Advance.
Upvotes: 0
Views: 344
Reputation: 1531
look at toArray and slice.
var newAC:ArrayCollection = new ArrayCollection( myAC.toArray().slice(10,20) );
//myAc = original ArrayCollection, 10 = startIndex, 20 = endIndex
Upvotes: 2