flex 4 权威指南学习历程
来源:互联网 发布:c多线程编程实战 pdf 编辑:程序博客网 时间:2024/05/11 19:20
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Script>
<![CDATA[
]]>
</fx:Script>
<s:states>
<s:State name="State1"/>
<s:State name="cartView"/>
<s:State name="expanded"/>
</s:states>
<fx:Declarations>
<!-- 将非可视元素(例如服务、值对象)放在此处 -->
</fx:Declarations>
<s:controlBarLayout>
<s:BasicLayout/>
</s:controlBarLayout>
<s:controlBarContent>
<s:Button y="0" label="CheckOut" id="btnCheckOut" right="20"/>
<s:Button y="0" label="btnViewCart" id="btnViewCart" right="120" click="this.currentState ='cartView'"/>
<s:Button label="Flex Grocery" y="0" left="21"/>
</s:controlBarContent>
<s:Label text="Flex Grocery (c)2009" right="20" bottom="20"/>
<s:HGroup width="100%" height="100%" id="bodyGroup">
<s:VGroup x="0" y="0" width="100%" height="100%" id="products"
width.cartView="0"
height.cartView="0"
visible.cartView="false">
<s:Label text=" Milk" id="prodName" width="52" height="18"
verticalAlign="middle"/>
<mx:Image width="48" height="59" scaleContent="true"
source="@Embed('assets/dairy_milk.jpg')"
mouseOver="this.currentState ='expanded'"
mouseOut ="this.currentState ='State1'"/>
<s:Label text=" $1.99" id="price" width="52" height="18"
verticalAlign="middle"/>
<s:Button label="AddToCart" id="Add" cornerRadius="6"/>
</s:VGroup >
<s:VGroup width="50%" height="100%" paddingLeft="40" rowHeight="40" id="cartGroup"
width.cartView="100%" requestedRowCount.State1="50" requestedRowCount.expanded="50">
<s:Label text=" Your Cart total :$" width="150" height="52"
verticalAlign="middle"/>
<s:Button includeIn="State1,expanded" label="ViewCart" width="126"
cornerRadius="6" enabled="true" click="this.currentState ='cartView'"/>
<mx:DataGrid includeIn="cartView" height="174" width="276">
<mx:columns>
<mx:DataGridColumn headerText="列 1" dataField="col1"/>
<mx:DataGridColumn headerText="列 2" dataField="col2"/>
<mx:DataGridColumn headerText="列 3" dataField="col3"/>
</mx:columns>
</mx:DataGrid>
<s:Button includeIn="cartView" label="Continue shopping ……" width="228" click="this.currentState =''"/>
</s:VGroup>
</s:HGroup>
<s:VGroup x="200" width="387" height="36" includeIn="expanded" >
<s:Label text="Low fat"/>
</s:VGroup>
</s:Application>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Script>
<![CDATA[
]]>
</fx:Script>
<s:states>
<s:State name="State1"/>
<s:State name="cartView"/>
<s:State name="expanded"/>
</s:states>
<fx:Declarations>
<!-- 将非可视元素(例如服务、值对象)放在此处 -->
</fx:Declarations>
<s:controlBarLayout>
<s:BasicLayout/>
</s:controlBarLayout>
<s:controlBarContent>
<s:Button y="0" label="CheckOut" id="btnCheckOut" right="20"/>
<s:Button y="0" label="btnViewCart" id="btnViewCart" right="120" click="this.currentState ='cartView'"/>
<s:Button label="Flex Grocery" y="0" left="21"/>
</s:controlBarContent>
<s:Label text="Flex Grocery (c)2009" right="20" bottom="20"/>
<s:HGroup width="100%" height="100%" id="bodyGroup">
<s:VGroup x="0" y="0" width="100%" height="100%" id="products"
width.cartView="0"
height.cartView="0"
visible.cartView="false">
<s:Label text=" Milk" id="prodName" width="52" height="18"
verticalAlign="middle"/>
<mx:Image width="48" height="59" scaleContent="true"
source="@Embed('assets/dairy_milk.jpg')"
mouseOver="this.currentState ='expanded'"
mouseOut ="this.currentState ='State1'"/>
<s:Label text=" $1.99" id="price" width="52" height="18"
verticalAlign="middle"/>
<s:Button label="AddToCart" id="Add" cornerRadius="6"/>
</s:VGroup >
<s:VGroup width="50%" height="100%" paddingLeft="40" rowHeight="40" id="cartGroup"
width.cartView="100%" requestedRowCount.State1="50" requestedRowCount.expanded="50">
<s:Label text=" Your Cart total :$" width="150" height="52"
verticalAlign="middle"/>
<s:Button includeIn="State1,expanded" label="ViewCart" width="126"
cornerRadius="6" enabled="true" click="this.currentState ='cartView'"/>
<mx:DataGrid includeIn="cartView" height="174" width="276">
<mx:columns>
<mx:DataGridColumn headerText="列 1" dataField="col1"/>
<mx:DataGridColumn headerText="列 2" dataField="col2"/>
<mx:DataGridColumn headerText="列 3" dataField="col3"/>
</mx:columns>
</mx:DataGrid>
<s:Button includeIn="cartView" label="Continue shopping ……" width="228" click="this.currentState =''"/>
</s:VGroup>
</s:HGroup>
<s:VGroup x="200" width="387" height="36" includeIn="expanded" >
<s:Label text="Low fat"/>
</s:VGroup>
</s:Application>
- flex 4 权威指南学习历程
- Flex 3权威指南
- javascript权威指南学习4
- Flex权威指南3学习笔记之一------界面知识(一)
- Flex权威指南3学习笔记之一------界面知识(二)
- Flex权威指南3学习笔记之一------界面知识(三)
- Flex权威指南3学习笔记之一------界面知识(四)
- javascript权威指南学习笔记(4)--对象
- javascript权威指南学习
- 《mongodb权威指南》学习
- 《Netty权威指南》学习
- Flex权威指南3学习笔记之二------简单控件的使用
- 《Tomcat权威指南》学习笔记
- 《Tomcat权威指南》学习笔记
- jquery权威指南学习笔记
- javascript权威指南学习笔记
- javascript权威指南学习笔记
- javascript权威指南学习5
- 不等式
- BASE64、MD5、SHA、HMAC几种加密算法
- 道里云技术播客
- shell编程连载【2】-+1~100求和
- .Net 体系结构图
- flex 4 权威指南学习历程
- C++函数参数指南
- 上下五千年
- wince驱动学习笔记(vs2005实现流驱动动态加载与卸载 1)
- hdu1097
- Javascript购物车 操作Cookie存取Json
- 在C + + 0 x新标准中,使用构造函数初始化列表和序列
- 6年多IT项目经验,还没有跟测试人员打过交道
- openCV 矩阵(图像)操作函数