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";
      miniAC[0].rank=4;
      miniAC[1].amenity="pool";
      miniAC[1].rank=5;

      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....

      Thanks