5 Replies Latest reply on Dec 5, 2006 11:40 AM by ntsiii

    How to find and modify  item in a nested array collection?

    strix uralensis

      would anybody know how to find and modify item in a nested array collection:

      private var ac:ArrayCollection = new ArrayCollection([ {id:1,name:"A",children:[{id:4,name:"AA",children:[{id:8,name:"AAA"}]},{id:5,name:"AB"}]} ,

      Let's say I've got object {id:8, name:"X"} , how could I find item in a collection with the correspoding id property, get handle on it and update the name property of that object?

      I'm trying to use this as a dataprovider for a tree populated via CF and remoting....

      Thanks a lot for help!