Flex4入门实例教程1.doc

  1. 1、本文档共14页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Flex4入门实例教程1

Flex4入门实例教程1 Flex4入门实例教程是以建立FlexGrocer应用程序的一些主要应用程序文件,你将学到Flash Builder界面的相关知识,了解如何创建、运行和保存应用程序文件。你也将探索到Flash Builder易于开发应用程序的诸多特性。 1.1布置电子商务应用程序FlexGrocer 1.2使用基于约束的布局 1.3使用视图状态 1.4显示图片 1.5建立详细信息视图 1.6使用数据绑定将数据结构链接到简单的空件 1.7基于创建完成事件修改数据。 1.1布置电子商务应用程序FlexGrocer 源代码: ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=/mxml/2009 xmlns:s=library:///flex/spark xmlns:mx=library:///flex/mx minWidth=955 minHeight=600 fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations s:controlBarLayout s:BasicLayout/ /s:controlBarLayout s:controlBarContent s:Button x=534 y=10 label=Checkout id=btnCheckout/ s:Button x=639 y=10 label=View Cart id=btnCartView/ s:Button label=Flex Grocer x=5 y=5/ /s:controlBarContent s:Label x=550 y=282 text=(c)2009,FlexGrocer/ s:Group width=100% height=100% id=bodyGroup s:layout s:HorizontalLayout/ /s:layout s:Group width=100% height=150 id=products s:layout s:VerticalLayout/ /s:layout s:Label text=Milk id=prodName/ s:Label text=$1.99 height=12 id=price/ s:Button label=AddToCart id=add/ /s:Group /s:Group /s:Application 1.2使用基于约束的布局 源代码: ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=/mxml/2009 xmlns:s=library:///flex/spark xmlns:mx=library:///flex/mx fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations s:controlBarLayout s:BasicLayout/ /s:controlBarLayout s:controlBarContent s:Button y=10 label=Checkout id=btnCheckout right=10/ s:Button y=10 label=View Cart id=btnCartView right=90/ s:Button label=Flex Grocer x=5 y=5/ /s:controlBarContent s:Label text=(c)2009,FlexGrocer right=10 bottom=10/ s:Group width=100% height=100% id=bodyGroup s:layout s:HorizontalLayout/ /s:layout s:Group width=100% height=150 id=products s:layout s:VerticalLayout/ /s:layout s:Label text=Milk id=prodName/ s:Labe

文档评论(0)

xcs88858 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档