Solved! Go to Solution.
private function expandAll(item:TocItem):void { item.collapsed = false; expandChildrenOf(item, true); if(item.isGroupLayer()){ for each (var item2:TocItem in item.children){ expandAll(item2); } } }//if(_expanded) expandItem(tocItem, true, true, false, null); if(_expanded) expandAll(tocItem);
private function expandAll(item:TocItem):void { item.collapsed = false; expandChildrenOf(item, true); if(item.isGroupLayer()){ for each (var item2:TocItem in item.children){ expandAll(item2); } } }//if(_expanded) expandItem(tocItem, true, true, false, null); if(_expanded) expandAll(tocItem);