MSTRTree实现链接(跳转)

  • 格式:docx
  • 大小:15.68 KB
  • 文档页数:1

MSTRTree实现链接(跳转)

xmlDataFile="TestMstrTree.xml"
xmlns:mstr="http://web.microstrategy.com/visframe"
backgroundGradientColors="[#808080, #808080]" layout="absolute"
xmlns:local="*">

importmx.collections.ICollectionView;
importmx.events.ListEvent;

privatefunctiontree_itemClick(evt:ListEvent):void {
varitem:Object = MstrTree(evt.currentTarget).selectedItem;
dd.text = item.toString();
if (tree.dataDescriptor.isBranch(item)) {
tree.expandItem(item, !tree.isItemOpen(item), true);
}

ExternalInterface.call("function(){window.location.href='http://local
host:8088/webpro/webpro-debug/Main.html';}");
}

]]>

templateDefn="*"/>
width="300" height="400" x="10" y="10"
itemClick="tree_itemClick(event);"/>


本文系原创,欢迎光临小店http://heludd.taobao.com