A neophyte question, no doubt...
If I have an ArrayCollection like this:


            private var ac:ArrayCollection= new ArrayCollection([

                {item:"dog", group:"Animals"},

                {item:"orange", group:"Fruits"}, 

                {item:"cat", group:"Animals"},

                {item:"apple", group:"Fruits"}

                ]);



How can I get a Tree component with the "groups" as the clickable nodes and the 
appropriate "items" as the children of those nodes?



I gather that one way involves creating a new ArrayCollection with all the 
"item" fields turned into "children" fields, but is that really the 
best way to go, and if so, can someone show me how?

Thanks a bunch.
Phil.

Reply via email to