摘要:
//全部展开private function ExpandAll():void{ // treeMenu.dataProvider是id为treeMenu所绑定的数据源是个xmllist for each(var item:XML in treeMenu.dataProvider) treeMenu.expandChildrenOf(item,true);}//全部收起private function CollapseAll():void {for each(var item:XML in treeMenu.dataProvider)treeMenu.expandChildrenOf(item 阅读全文