5 Replies Latest reply on May 22, 2008 4:51 AM by Pratap Reddy

    How to update ArrayCollection at runtime?

    Pratap Reddy
      Am facing some problem with arraycollection..
      am having an arraycolelction like this...
      var dpHierarchy:ArrayCollection = new ArrayCollection([
      {Region:"Demand1"},
      {Region:"Demand2"},
      {Region:"Demand3"},
      {Region:"Demand4"}]

      now what am looking for is.. how to update this arraycollection at runtime using actions script?
      i need to update this array colelction something like this...

      var dpHierarchy:ArrayCollection = new ArrayCollection([
      {Region:"Demand1", Year:"2008"},
      {Region:"Demand2", Year:"2008"},
      {Region:"Demand3", Year:"2008"},
      {Region:"Demand4", Year:"2008"}]

      How to add Year field in to existing arraycollection like shown in about example..

      thanks in advance
      Pratap