Flex3.权威指南.第一讲源代码
来源:互联网 发布:mysql时间差 编辑:程序博客网 时间:2024/04/29 19:03
1.EComm.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:states>
<mx:State name="cartView">
<mx:SetProperty target="{products}" name="width" value="0"/>
<mx:SetProperty target="{products}" name="height" value="0"/>
<mx:SetProperty target="{cartBox}" name="width" value="100%"/>
<mx:AddChild relativeTo="{cartBox}" position="lastChild">
<mx:LinkButton label="Continue Shopping" click="this.currentState=''" id="linkbutton2"/>
</mx:AddChild>
<mx:RemoveChild target="{linkbutton1}"/>
<mx:AddChild relativeTo="{linkbutton2}" position="before">
<mx:DataGrid width="100%">
<mx:columns>
<mx:DataGridColumn headerText="Column 1" dataField="col1"/>
<mx:DataGridColumn headerText="Column 2" dataField="col2"/>
<mx:DataGridColumn headerText="Column 3" dataField="col3"/>
</mx:columns>
</mx:DataGrid>
</mx:AddChild>
</mx:State>
</mx:states>
<mx:ApplicationControlBar x="10" y="10" dock="true" height="90">
<mx:Canvas width="100%" height="100%">
<mx:Label x="0" y="0" text="Flex"/>
<mx:Label x="0" y="41" text="Grocer"/>
<mx:Button y="10" label="ViewCart" id="bnViewCart" right="90"/>
<mx:Button y="10" label="Checkout" id="btnCheckout" right="10"/>
</mx:Canvas>
</mx:ApplicationControlBar>
<mx:Label x="355" y="225" text="(c)2009,FlexGrocer"/>
<mx:HBox x="0" y="9" width="100%" height="100%">
<mx:VBox width="100%" height="100%" id="products">
<mx:Label text="Milk" id="prodName"/>
<mx:Label text="$1.99" id="price"/>
<mx:Button label="Add To Cart" id="add"/>
</mx:VBox>
<mx:VBox height="100%" id="cartBox">
<mx:Label text="Your Cart Total :$"/>
<mx:LinkButton label="View Cart" id="linkbutton1" click="this.currentState='cartView'"/>
</mx:VBox>
</mx:HBox>
</mx:Application>
2.Dashboard.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal">
<mx:ApplicationControlBar dock="true">
<mx:LinkButton label="All"
click="this.currentState=''"/>
<mx:LinkButton label="Sales"
click="this.currentState='fullSales'" />
<mx:LinkButton label="Categories"
click="this.currentState='fullType'" />
<mx:LinkButton label="Comparison"
click="this.currentState='fullComp'" />
</mx:ApplicationControlBar>
<mx:states>
<mx:State name="fullSales">
<mx:SetProperty target="{rightCharts}"
name="width" value="0"/>
<mx:SetProperty target="{rightCharts}"
name="height" value="0"/>
</mx:State>
<mx:State name="fullType">
<mx:SetProperty target="{sales}"
name="width" value="0"/>
<mx:SetProperty target="{sales}"
name="height" value="0"/>
<mx:SetProperty target="{comp}"
name="width" value="0"/>
<mx:SetProperty target="{comp}"
name="height" value="0"/>
</mx:State>
<mx:State name="fullComp">
<mx:SetProperty target="{sales}"
name="width" value="0"/>
<mx:SetProperty target="{sales}"
name="height" value="0"/>
<mx:SetProperty target="{type}"
name="width" value="0"/>
<mx:SetProperty target="{type}"
name="height" value="0"/>
</mx:State>
</mx:states>
<mx:Panel id="sales" title="Sales Chart" width="100%" height="100%">
<mx:ControlBar>
</mx:ControlBar>
</mx:Panel>
<mx:VBox id="rightCharts"
width="100%" height="100%">
<mx:Panel id="type" width="100%" height="100%"
title="Category Chart">
<mx:ControlBar>
</mx:ControlBar>
</mx:Panel>
<mx:Panel id="comp" width="100%" height="100%"
title="Comparison Chart">
<mx:ControlBar>
</mx:ControlBar>
</mx:Panel>
</mx:VBox>
</mx:Application>
- Flex3.权威指南.第一讲源代码
- Flex3.权威指南.第二讲源代码
- 《Flex3 权威指南程序设计》视频教程
- Flex4 权威指南源代码下载
- Sencha Touch权威指南 PDF+源代码下载
- 《Swift权威指南》目录及其源代码下载
- javascript权威指南第一部分学习笔记
- JavaScript权威指南 第一部分 读书笔记
- jQuery权威指南之第一二章
- HTML5权威指南读书笔记【第一部分】
- hadoop权威指南第一第二章笔记
- http权威指南 第一部分(基础)
- 《PHP权威指南》第一章节笔记
- 《Flex3权威指南》学习笔记——阶段一(1-6)
- Flex3.0 权威指南 第17课 coldFusion服务器配置问题解决
- Tailspin Spyworks指南第一讲:创建项目
- 《Ext JS权威指南》一书的源代码下载地址
- Netty权威指南-NIO实现TimeServer服务器端源代码
- 我也说说《变形金刚》2
- 继续CLI实用性研究:)
- 向MOSS站点的数据库中插入中文字符显示为问号‘?’的一种解决办法
- 修复刚才发生错误的那个流!
- C++中的struct和class
- Flex3.权威指南.第一讲源代码
- 浪潮之巅 第十章 短暂的春秋--与机会失之交臂的公司 第四节 Real Networks
- ant编译flex
- “添加删除WIndows组件”中没有IIS时安装IIS方法
- pku1609 Tiling Up Blocks (DP题)
- seasar框架单体测试不能读取excel函数类型数据的问题
- 浪潮之巅 第十一章 幕后英雄----风险投资 第一节:风投的起源
- 由几道面试题谈到的计算机技术闲话
- 海口公交查询-海口坐车网,很好用