user2143071
user2143071

Reputation:

How to fetch selected items from ArrayCollection based on start Index and end Index?

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

Answers (1)

M4tchB0X3r
M4tchB0X3r

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

Related Questions