2 Replies Latest reply on May 6, 2010 10:24 AM by cdub

    retrieve nodes from arraycollection?

    cdub

      I have a datagrid popuated by an array collection that users can manipulate varias ways. What I'm trying to do now is extract info in certain columns into separate arrays, but I'm not sure how to get at the data.

       

      Here's my code:

       

                     //each item is like this

                      theCollection.addItem( { thing: "thing", stuff: "stuff" } );

       

       

                      for (var i:int=0; i<theCollection.length; i++)
                      {
                          theArray.push(theCollection[i].stuff);


                      }

       

      How can I get at at the data  from the column and put it into an array?