0

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.

1 Answer 1

2

look at toArray and slice.

var newAC:ArrayCollection = new ArrayCollection( myAC.toArray().slice(10,20) );
//myAc = original ArrayCollection, 10 = startIndex, 20 = endIndex
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.