`
cowoo
  • 浏览: 48125 次
  • 性别: Icon_minigender_1
社区版块
存档分类

Flex 2 Developer's Guide - Developing Applications in MXML

    博客分类:
  • Flex
阅读更多
读了Developing Applications in MXML这一节,一个简单的介绍。
  
  1.  Laying out a user interface using containers
    讲到有两种Container:layout containers,比如HBox,VBox,Grid等;navigator containers,比如 TabNavigator,ViewStack。
  2. Adding user interface controls
  3. Using the id property with MXML tags
  4. Using XML namespaces
    这个有点意思。和后面的一样。举个例子:

    xml 代码
    1. xml version="1.0"?>  
    2. <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:MyComps="containers.boxes.*">  
    3.   
    4.     <mx:Panel title="My Application" paddingTop="10" paddingBottom="10"  
    5.         paddingLeft="10" paddingRight="10">  
    6.   
    7.         <MyComps:CustomBox/>  
    8.   
    9.     <!---->mx:Panel>  
    10. <!---->mx:Application>  

    xmlns:MyComps="containers.boxes.*" 意味着有个叫CustomBox的MXML组件在container/boxes目录下,不过这里名字说的不明不白的,待查。
  5. Using MXML to trigger run-time code
  6. Binding data between components
  7. Using RPC services
    三种,WebService,HTTPService,RemoteObject。
  8. Storing data in a data model
    还是三种,<mx:model>,<mx:xml>,<mx:xmllist>。</mx:xmllist></mx:xml></mx:model>
  9. Validating data
    有点意思,不过
    xml 代码
    1. <mx:PhoneNumberValidator id="pnV2" source="{cellPhoneInput}" property="text"/>  
    难道Flex预备了N多的Validator?连PhoneNumberValidator都备好了?待查。
  10. Formatting data,不错
  11. Using Cascading Style Sheets (CSS)
  12. Using skins
  13. Using effects
    上边这三个基本上要靠Designer了,呵呵
  14. Defining custom MXML components
   
   
   
   
   
   
分享到:
评论
3 楼 lordhong 2007-04-14  
不用, NAMESPACE你自己可以DEFINE的,前面那个mx, 你也可以定义成mymx的namespace.
2 楼 cowoo 2007-04-13  
谢谢,看来是flex的同好啊,呵呵。
引用

引用

意味着有个叫CustomBox的MXML组件在container/boxes目录下,不过这里名字说的不明不白的,待查。

就是这个意思

不过,14里面给了个例子,那个组件叫
<!-- MyComboBox.mxml -->

这个再引用叫<mx:MyCombo ...>还差不多,CumstomBox.mxml是不是应该用<mx:Custom ...>来引用?
1 楼 lordhong 2007-04-13  
引用

意味着有个叫CustomBox的MXML组件在container/boxes目录下,不过这里名字说的不明不白的,待查。

就是这个意思

引用

难道Flex预备了N多的Validator?连PhoneNumberValidator都备好了?待查。

是的,还有信用卡,邮编,等等.
但只适合北美地区的格式.  不过可以写自己的validator

相关推荐

    The Essential Guide to Flex 2 with ActionScript 3.0-part 2

    Understand MXML containers * Create transitions * Create data-driven applications with XML * Interface Flex with ColdFusion * Understand the power of states &lt;br&gt;Flex 2 represents ...

    The Essential Guide to Flex 2 with ActionScript 3.0-part 1

    Understand MXML containers * Create transitions * Create data-driven applications with XML * Interface Flex with ColdFusion * Understand the power of states &lt;br&gt;Flex 2 represents ...

    Flex4-in-a-day

    What’s new in Adobe AIR 2 Text Layout Framework Working with Fonts Working with Flex 3 and 4 components in the same project Migrating Flex 3 projects to Flex 4 New features from Flash Builder 4 ...

    Flex4视频教程_02-02用mxml自定义事件.rar

    Flex4视频教程_02-02用mxml自定义事件.rar

    The Essential Guide to Flex 2 with ActionScript 3.0 源代码

    Flex 2 represents something of a revolution in web applications. It is the next evolutionary step of Flash, which has grown from a web animation tool to a powerful enterprise web design and ...

    flex-MXML语法

    flex -MXML语法,介绍flex 的 mxml的基本语法构成,适合一般学习者使用

    Flex 3 A Beginners Guide

    Flex 3: A Beginner's Guide is an easy-to-follow, fast-paced tutorial that allows you to fully grasp the fundamentals, including MXML, ActionScript, Flex Builder, states, transitions, and behaviors....

    Flex学习大礼包(flex基础教程、flex和java整合)--下载不扣分,童叟无欺

    2&gt;FLEX和JAVA整合的技术文档。 【适用于】 1&gt;FLEX入门 2&gt;具有FLEX基础的JAVA程序员 3&gt;具有JAVA基础的FLEX程序员 4&gt;JAVA程序员 4&gt;FLEX程序员 【目录如下】 Flex大礼包 └─Flex教程 第01章 Flex简介.ppt 第02章 ...

    Enterprise Development with Flex

    Part of the popular "Adobe Developer Library" co-published by O'Reilly and Adobe, "Enterprise Development with Flex" goes well beyond Flex tutorials and product documentation to suggest best practices...

    mxml-2.5.rar_minixml-2.7.tar_minixml2_minixml2.5_mxml-2.5_mxml.h

    minixml2.5最新的版本。 嵌入式xml 解析、查找、生成、遍历 功能,全部实现是标准c,移植很容易。 最新的2.5,修改了很多bug。 这个压缩包,里下载完了,直接就可以在liunx下编译安装。 如果是在windows下的话,只需要...

    MXML语法关于flexview

    MXML语法.MXML flexview actionscript

    flex中的mxml语法

    pdf格式的flex的mxml语法,适合想学习flex的新手

    Flex eclipse 插件解决Mxml打开问题

    如果你的flex插件出现mxml无法打开的问题,请下载此文件,同时参考:http://www.tekool.net/blog/2008/06/28/flex-builder-3-plugin-dont-work-with-eclipse-34/或者:...

    flex arcgis 应用

    1. In Flex builder, create a new Flex project (File -&gt; New -&gt; Flex project). 2. Copy all the contents...4. In Flex builder, right-click on any of the sample mxml applications and click "Run Application

    About-MXML.zip_flex_mxml

    About MXML programming files and Flex usage.

    ArcGIS_Flex开发包

    2. Copy all the contents of the ArcGIS_Flex\samples\src folder to src folder of the Flex project created above. 3. In Adobe Flash Builder, add the API Library to the project through Project -&gt; ...

    ArcGIS API for Flex 2.5

    4. In Adobe Flash Builder, right-click on any of the sample mxml applications and click "Set as Default Application". 5. In Adobe Flash Builder, right-click on any of the sample mxml applications and...

    《Developing iOS Applications with Flex 4.5》英文原版电子书

    Flex,它是强大的矢量动画编辑工具,在做动画起家之后,...Flex是通过java或者.net等非Flash途径,解释.mxml文件组织components,并生成相应得.swf文件。Flex的component和flash的component很相似,但是有所改进增强。

    J2EE集成Flex--MXML组件嵌入JSP

    NULL 博文链接:https://yangyangmyself.iteye.com/blog/2116383

    Flex页面嵌入jsp文件

    flex-iframe1.5.1.zip解压找到flex-iframe-1.5.1\flex-iframe-1.5.1\bin\flex-iframe-1.5.1.swc放入flex项目的libs里面如果不是web项目就放倒lib里面,然后在你的mxml的头部里输入xmlns:名字(你自己喜欢怎么写)=...

Global site tag (gtag.js) - Google Analytics