Populate Tree using data from ArrayCollection
- by jtorrance
Let's say I had an ArrayCollection like this:
public var ac:ArrayCollection= new ArrayCollection([
{item:"dog", group:"Animal"},
{item:"orange", group:"Fruits"},
{item:"cat", group:"Animal"},
{item:"apple", group:"Fruits"}
]);
How would I create a Tree component in Flex 3 that uses the groups as nodes, with the appropriate items listed under each node?