首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > flex >

flex树默许打开所有节点的写法

2012-08-24 
flex树默认打开所有节点的写法参考:http://www.iteye.com/topic/441725当xml是写在mxml中时,可以在页面的

flex树默认打开所有节点的写法
参考:http://www.iteye.com/topic/441725

当xml是写在mxml中时,可以在页面的 creationComplete="init()"里直接写

protected function showTreeResult_resultHandler(event:ResultEvent):void{var xmlStr:String = event.result as String;treeData = new XML(xmlStr);tree.callLater(expandTree);}private function expandTree():void{tree.expandChildrenOf(treeData,true);}

热点排行