2 Replies Latest reply on Nov 9, 2006 7:36 PM by peterent

    adding to an arraycollection

    upshotvideo Level 1
      Is there a way to push an ArrayCollection?
      I tried this "does not work":

      var miniAC:ArrayCollection = new ArrayCollection;
      miniAC[0].amenity="fire place";

      I have a large arraycollection that is populated from an httpservice, but I want to loop through that and make another one with only certain indexes from the big one. Like if rank<5, push this index onto the other array....