文章分类 Classification
Flex3.0入门课程:创建简单相册
稿件来源: 阳光企业网站管理系统 撰稿作者: 太阳光 发表日期: 2013-09-18 阅读次数: 129 查看权限: 游客查看
Flex3.0入门课程:创建简单相册
pictrue.mxml
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" fontSize="12"> <mx:Array id="arr"> <mx:Object label="图片标题1" thumbnailImage="../libs/min1.jpg" fullImage="../libs/big1.jpg" /> <mx:Object label="图片标题2" thumbnailImage="../libs/min2.jpg" fullImage="../libs/big2.jpg" /> <mx:Object label="图片标题3" thumbnailImage="../libs/min3.jpg" fullImage="../libs/big3.jpg" /> <mx:Object label="图片标题4" thumbnailImage="../libs/min4.jpg" fullImage="../libs/big4.jpg" /> <mx:Object label="图片标题5" thumbnailImage="../libs/min5.jpg" fullImage="../libs/big5.jpg" /> </mx:Array> <mx:Panel title="实现简单相册" width="425" height="465" horizontalAlign="center"> <mx:Image id="img" source="{horizontalList.selectedItem.fullImage}" height="300" maintainAspectRatio="true" horizontalAlign="center" width="{horizontalList.width}" /> <mx:ControlBar horizontalAlign="center"> <mx:HorizontalList id="horizontalList" labelField="label" iconField="thumbnailImage" dataProvider="{arr}" itemRenderer="CustomItemRenderer" columnCount="4" columnWidth="100" rowCount="1" rowHeight="90" horizontalScrollPolicy="on" alternatingItemColors="[#FFFFFF, #EEEEEE]"/> </mx:ControlBar> </mx:Panel> </mx:Application>
CustomItemRenderer.mxml
<?xml version="1.0" encoding="utf-8"?> <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" horizontalAlign="center" verticalAlign="middle" width="100" height="90"> <mx:Image source="{data.thumbnailImage}"/> <mx:Label text="{data.label}"/> </mx:VBox>
关键词: Flex3.0,入门课程,创建相册 编辑时间: 2013-09-18 14:56:59
0
高兴0
支持0
搞笑0
不解1
谎言0
枪稿0
震惊0
无奈0
无聊0
反对0
愤怒
0%(0)
0%(0)
- 中搜索:Flex3.0入门课程:创建简单相册
- 中搜索:Flex3.0入门课程:创建简单相册
- 暂无评论
文章图片 article Pictrue
网友评论