You can also create a custom data descriptor and set the dataDescriptor property of the tree component. See http://livedocs.adobe.com/flex/3/html/help.html?content=about_dataproviders_6.html
--- In flexcoders@yahoogroups.com, Oleg Sivokon <olegsivo...@...> wrote: > > The best way would be to implement your own ICollectionView, however, this > would be a complex task. > For your example, I'd do it like so: > > private var ac:ArrayCollection = new ArrayCollection([ > { "Animals": ["dog", "cat"], > { "Fruits": ["orange", "apple"] } > ]); > > > Best. > > Oleg >