Pratap
05-21-2008, 07:15 AM
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
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