Flex 2 Developer's Guide - Developing Applications in MXML

阅读更多
读了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
    还是三种,
  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
   
   
   
   
   
   

你可能感兴趣的:(Flex,XML,WebService,CSS,Adobe)