假设我有一个像这样的ArrayCollection:
public var ac:ArrayCollection= new ArrayCollection([
{item:"dog", group:"Animals"},
{item:"orange", group:"Fruits"},
{item:"cat", group:"Animals"},
{item:"apple", group:"Fruits"}
]);
Run Code Online (Sandbox Code Playgroud)
如何在Flex 3中创建使用组作为节点的树组件,并在每个节点下列出相应的项?