2 Replies Latest reply on May 21, 2009 9:15 PM by DigitalSpeciaist

    Filter ArrayCollection by index


      What is the syntax to reference the index in an ArrayCollection? I know if you remove  any filterFunction from an ArrayCollection it will be automatically ordered by index, but I want to explicitly refer to the index in a filterFunction:


      private function filterUsingIndexNum(item:Object):Boolean{

                             if(item.index < someValue) return true;

                             else return false;     



      // item.index is not referencing a property of the data in the ArrayCollection, I am actually trying to reference the index numder of the items in the ArrayCollection.