flex实列demo
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*" creationComplete="initTree(); iFrame.visible=true" viewSourceURL="srcview/index.html"> <mx:HBox width="100%" height="100%"> <mx:Panel title="Tree" width="200" height="100%" panelBorderStyle="roundCorners"> <mx:Tree id="tree" width="100%" height="100%" dataProvider="{content}" change="iFrame.source=tree.selectedNode.path" /> </mx:Panel> <mx:Panel width="100%" height="100%" title="Content" marginTop="1" marginBottom="1" marginLeft="1" marginRight="1" > <IFrame id="iFrame" source="http://blog.eshangrao.com" width="100%" height="100%" /> <mx:ControlBar> <mx:CheckBox id="cbVisible" label="IFrame Visible" selected="true" click="iFrame.visible=cbVisible.selected"/> </mx:ControlBar> </mx:Panel> </mx:HBox> <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; // TODO: determine whether we can go back to using the XML object in MXML, which // is much less verbose than the initTree() function below. This was changed // because using the XML object as the data provider to a Tree looks very // strange in 2.0. Still need to investigate using ITreeDataDescriptor or // need to ask others on the recommended approach here. [Bindable] public var content:ArrayCollection; private function initTree() { content = new ArrayCollection(); var googleItem:Object = new Object(); googleItem.label = 'Google'; googleItem.path = 'http://www.google.com'; var yahooItem:Object = new Object(); yahooItem.label = 'Yahoo'; yahooItem.path = 'http://www.yahoo.com'; var searchItem:Object = new Object(); searchItem.label = 'Search'; searchItem.children = [googleItem, yahooItem]; content.addItem(searchItem); var adobeItem:Object = new Object(); adobeItem.label = 'Adobe'; adobeItem.path = 'http://www.adobe.com'; var softwareItem:Object = new Object(); softwareItem.label = 'Software'; softwareItem.children = [adobeItem]; content.addItem(softwareItem); // TODO: add some links here to Flex sites } ]]> </mx:Script> </mx:Application>
- 1
- 粉丝: 0
- 资源: 4
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 三次样条插值的介绍-什么是三次样条插值原理
- http的一些相关介绍-对于我们来说什么是http
- 全卷积网络基于voc2012数据集简单pytorch实现
- pycharm的一些介绍-用于更好的学习python
- 基于C++的程序设计大赛天梯赛L2答案(天梯赛)
- 基于python实现的三次样条插值和均值插值法实现
- Python语言教程2-python批量图片大小处理-多文件夹
- Python语言教程1-python批量图片重命名,将后缀某几个不想要的字去除
- Space Combat Kit 太空战斗套件Unity游戏开发插件资源unitypackage C#
- Universal Device Preview 通用设备预览Unity游戏开发插件资源unitypackage