flex tree展开
Flex的Tree组件自动展开的代码
function init()
{
tree.dataProvider=dataList;
tree.callLater(expendTree);
}
private function expendTree():void
{
tree.expandItem(dataList.node[0],true,false);
tree.expandItem(dataList.node[1],true,false);
}