<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 325,  comments - 25,  trackbacks - 0

    視圖狀態(tài)切換:
    <?xml version="1.0" ?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      backgroundColor="#FFFFFF"> 
      <mx:states>
        <mx:State name="Description">
          <mx:AddChild relativeTo="{hbox1}" position="before">
            <mx:TextArea width="200" height="180"
             borderStyle="none"
             text="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. "/>
          </mx:AddChild>
          <mx:RemoveChild target="{descButton}"/>
          <mx:AddChild relativeTo="{hbox1}" position="before">
            <mx:Button label="Close Description"
             click="this.currentState=''"/>
          </mx:AddChild>
        </mx:State>
      </mx:states>
      <mx:VBox id="vbox1" borderStyle="outset" paddingLeft="5" paddingBottom="5" paddingRight="5" paddingTop="5">
        <mx:Label text="Product Name" fontWeight="bold" />
        <mx:Button label="Open Description"
         click="this.currentState='Description'"
         id="descButton"/>
        <mx:HBox id="hbox1">
          <mx:Label text="$3.99"/>
          <mx:NumericStepper id="qty" minimum="1"
           maximum="10" stepSize="1"/>
         <mx:Button label="Add to Cart"/>
        </mx:HBox>
      </mx:VBox>
    </mx:Application>
    使用過渡:由于狀態(tài)切換過于突然,要變的溫和一些

    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
     width="400" height="400" layout="absolute"
     verticalScrollPolicy="off" horizontalScrollPolicy="off"
     backgroundColor="#FFFFFF">
     <mx:transitions>
        <mx:Transition fromState="*" toState="*">
          <mx:Sequence targets="{[panel1,panel2,panel3]}">
            <mx:Move duration="400"/>
            <mx:Rotate angleFrom="0" angleTo="360" filter="move" />
            <mx:Resize duration="400"/>
          </mx:Sequence>
        </mx:Transition>
      </mx:transitions>
      <mx:states>
        <mx:State name="s1">
          <mx:SetProperty target="{panel1}" name="x" value="5"/>
          <mx:SetProperty target="{panel1}" name="y" value="60"/>
          <mx:SetProperty target="{panel1}" name="height" value="300"/>
          <mx:SetProperty target="{panel1}" name="width" value="390"/>
          <mx:SetProperty target="{panel2}" name="x" value="135"/>
          <mx:SetProperty target="{panel2}" name="y" value="10"/>
          <mx:SetProperty target="{panel2}" name="height" value="30"/>
          <mx:SetProperty target="{panel2}" name="width" value="125"/>
          <mx:SetProperty target="{panel3}" name="x" value="270"/>
          <mx:SetProperty target="{panel3}" name="y" value="10"/>
          <mx:SetProperty target="{panel3}" name="height" value="30"/>
          <mx:SetProperty target="{panel3}" name="width" value="125"/>
        </mx:State>
        <mx:State name="s2">
          <mx:SetProperty target="{panel1}" name="x" value="5"/>
          <mx:SetProperty target="{panel1}" name="y" value="10"/>
          <mx:SetProperty target="{panel1}" name="height" value="30"/>
          <mx:SetProperty target="{panel1}" name="width" value="125"/>
          <mx:SetProperty target="{panel2}" name="width" value="390"/>
          <mx:SetProperty target="{panel2}" name="height" value="300"/>
          <mx:SetProperty target="{panel2}" name="x" value="5"/>
          <mx:SetProperty target="{panel2}" name="y" value="60"/>
          <mx:SetProperty target="{panel3}" name="x" value="270"/>
          <mx:SetProperty target="{panel3}" name="y" value="10"/>
          <mx:SetProperty target="{panel3}" name="height" value="30"/>
          <mx:SetProperty target="{panel3}" name="width" value="125"/>
        </mx:State>
        <mx:State name="s3">
          <mx:SetProperty target="{panel1}" name="x" value="5"/>
          <mx:SetProperty target="{panel1}" name="y" value="10"/>
          <mx:SetProperty target="{panel1}" name="height" value="30"/>
          <mx:SetProperty target="{panel1}" name="width" value="125"/>
          <mx:SetProperty target="{panel2}" name="x" value="135"/>
          <mx:SetProperty target="{panel2}" name="y" value="10"/>
          <mx:SetProperty target="{panel2}" name="height" value="30"/>
          <mx:SetProperty target="{panel2}" name="width" value="125"/>
          <mx:SetProperty target="{panel3}" name="width" value="390"/>
          <mx:SetProperty target="{panel3}" name="height" value="300"/>
          <mx:SetProperty target="{panel3}" name="x" value="5"/>
          <mx:SetProperty target="{panel3}" name="y" value="60"/>
        </mx:State>
      </mx:states>
      <mx:Panel x="5" y="10" width="125" height="30" layout="absolute" title="Panel 1" id="panel1" click="this.currentState='s1'"/>
      <mx:Panel x="135" y="10" width="125" height="30" layout="absolute" title="Panel 2" id="panel2" click="this.currentState='s2'"/>
      <mx:Panel x="270" y="10" width="125" height="30" layout="absolute" id="panel3" title="Panel 3" click="this.currentState='s3'"/>
      <mx:Button x="167" y="368" label="Reset" click="this.currentState=''"/>
    </mx:Application>

     




     

    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
     width="400" height="400" layout="absolute"
     verticalScrollPolicy="off" horizontalScrollPolicy="off"
     backgroundColor="#FFFFFF">
     <mx:transitions>
        <mx:Transition fromState="*" toState="*">
          <mx:Sequence targets="{[panel1,panel2,panel3]}">
            <mx:Move duration="400"/>
            <mx:Rotate angleFrom="0" angleTo="360" filter="move" />
            <mx:Resize duration="400"/>
          </mx:Sequence>
        </mx:Transition>
      </mx:transitions>
      <mx:states>
        <mx:State name="s1">
          <mx:SetProperty target="{panel1}" name="x" value="5"/>
          <mx:SetProperty target="{panel1}" name="y" value="60"/>
          <mx:SetProperty target="{panel1}" name="height" value="300"/>
          <mx:SetProperty target="{panel1}" name="width" value="390"/>
          <mx:SetProperty target="{panel2}" name="x" value="135"/>
          <mx:SetProperty target="{panel2}" name="y" value="10"/>
          <mx:SetProperty target="{panel2}" name="height" value="30"/>
          <mx:SetProperty target="{panel2}" name="width" value="125"/>
          <mx:SetProperty target="{panel3}" name="x" value="270"/>
          <mx:SetProperty target="{panel3}" name="y" value="10"/>
          <mx:SetProperty target="{panel3}" name="height" value="30"/>
          <mx:SetProperty target="{panel3}" name="width" value="125"/>
        </mx:State>
        <mx:State name="s2">
          <mx:SetProperty target="{panel1}" name="x" value="5"/>
          <mx:SetProperty target="{panel1}" name="y" value="10"/>
          <mx:SetProperty target="{panel1}" name="height" value="30"/>
          <mx:SetProperty target="{panel1}" name="width" value="125"/>
          <mx:SetProperty target="{panel2}" name="width" value="390"/>
          <mx:SetProperty target="{panel2}" name="height" value="300"/>
          <mx:SetProperty target="{panel2}" name="x" value="5"/>
          <mx:SetProperty target="{panel2}" name="y" value="60"/>
          <mx:SetProperty target="{panel3}" name="x" value="270"/>
          <mx:SetProperty target="{panel3}" name="y" value="10"/>
          <mx:SetProperty target="{panel3}" name="height" value="30"/>
          <mx:SetProperty target="{panel3}" name="width" value="125"/>
        </mx:State>
        <mx:State name="s3">
          <mx:SetProperty target="{panel1}" name="x" value="5"/>
          <mx:SetProperty target="{panel1}" name="y" value="10"/>
          <mx:SetProperty target="{panel1}" name="height" value="30"/>
          <mx:SetProperty target="{panel1}" name="width" value="125"/>
          <mx:SetProperty target="{panel2}" name="x" value="135"/>
          <mx:SetProperty target="{panel2}" name="y" value="10"/>
          <mx:SetProperty target="{panel2}" name="height" value="30"/>
          <mx:SetProperty target="{panel2}" name="width" value="125"/>
          <mx:SetProperty target="{panel3}" name="width" value="390"/>
          <mx:SetProperty target="{panel3}" name="height" value="300"/>
          <mx:SetProperty target="{panel3}" name="x" value="5"/>
          <mx:SetProperty target="{panel3}" name="y" value="60"/>
        </mx:State>
      </mx:states>
      <mx:Panel x="5" y="10" width="125" height="30" layout="absolute" title="Panel 1" id="panel1" click="this.currentState='s1'"/>
      <mx:Panel x="135" y="10" width="125" height="30" layout="absolute" title="Panel 2" id="panel2" click="this.currentState='s2'"/>
      <mx:Panel x="270" y="10" width="125" height="30" layout="absolute" id="panel3" title="Panel 3" click="this.currentState='s3'"/>
      <mx:Button x="167" y="368" label="Reset" click="this.currentState=''"/>
    </mx:Application>

     


     

    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
     width="400" height="400" layout="absolute"
     verticalScrollPolicy="off" horizontalScrollPolicy="off"
     backgroundColor="#FFFFFF">
     <mx:transitions>
        <mx:Transition fromState="*" toState="*">
          <mx:Sequence targets="{[panel1,panel2,panel3]}">
            <mx:Move duration="400"/>
            <mx:Rotate angleFrom="0" angleTo="360" filter="move" />
            <mx:Resize duration="400"/>
          </mx:Sequence>
        </mx:Transition>
      </mx:transitions>
      <mx:states>
        <mx:State name="s1">
          <mx:SetProperty target="{panel1}" name="x" value="5"/>
          <mx:SetProperty target="{panel1}" name="y" value="60"/>
          <mx:SetProperty target="{panel1}" name="height" value="300"/>
          <mx:SetProperty target="{panel1}" name="width" value="390"/>
          <mx:SetProperty target="{panel2}" name="x" value="135"/>
          <mx:SetProperty target="{panel2}" name="y" value="10"/>
          <mx:SetProperty target="{panel2}" name="height" value="30"/>
          <mx:SetProperty target="{panel2}" name="width" value="125"/>
          <mx:SetProperty target="{panel3}" name="x" value="270"/>
          <mx:SetProperty target="{panel3}" name="y" value="10"/>
          <mx:SetProperty target="{panel3}" name="height" value="30"/>
          <mx:SetProperty target="{panel3}" name="width" value="125"/>
        </mx:State>
        <mx:State name="s2">
          <mx:SetProperty target="{panel1}" name="x" value="5"/>
          <mx:SetProperty target="{panel1}" name="y" value="10"/>
          <mx:SetProperty target="{panel1}" name="height" value="30"/>
          <mx:SetProperty target="{panel1}" name="width" value="125"/>
          <mx:SetProperty target="{panel2}" name="width" value="390"/>
          <mx:SetProperty target="{panel2}" name="height" value="300"/>
          <mx:SetProperty target="{panel2}" name="x" value="5"/>
          <mx:SetProperty target="{panel2}" name="y" value="60"/>
          <mx:SetProperty target="{panel3}" name="x" value="270"/>
          <mx:SetProperty target="{panel3}" name="y" value="10"/>
          <mx:SetProperty target="{panel3}" name="height" value="30"/>
          <mx:SetProperty target="{panel3}" name="width" value="125"/>
        </mx:State>
        <mx:State name="s3">
          <mx:SetProperty target="{panel1}" name="x" value="5"/>
          <mx:SetProperty target="{panel1}" name="y" value="10"/>
          <mx:SetProperty target="{panel1}" name="height" value="30"/>
          <mx:SetProperty target="{panel1}" name="width" value="125"/>
          <mx:SetProperty target="{panel2}" name="x" value="135"/>
          <mx:SetProperty target="{panel2}" name="y" value="10"/>
          <mx:SetProperty target="{panel2}" name="height" value="30"/>
          <mx:SetProperty target="{panel2}" name="width" value="125"/>
          <mx:SetProperty target="{panel3}" name="width" value="390"/>
          <mx:SetProperty target="{panel3}" name="height" value="300"/>
          <mx:SetProperty target="{panel3}" name="x" value="5"/>
          <mx:SetProperty target="{panel3}" name="y" value="60"/>
        </mx:State>
      </mx:states>
      <mx:Panel x="5" y="10" width="125" height="30" layout="absolute" title="Panel 1" id="panel1" click="this.currentState='s1'"/>
      <mx:Panel x="135" y="10" width="125" height="30" layout="absolute" title="Panel 2" id="panel2" click="this.currentState='s2'"/>
      <mx:Panel x="270" y="10" width="125" height="30" layout="absolute" id="panel3" title="Panel 3" click="this.currentState='s3'"/>
      <mx:Button x="167" y="368" label="Reset" click="this.currentState=''"/>
    </mx:Application>

     

    posted on 2011-03-15 15:54 長春語林科技 閱讀(179) 評論(0)  編輯  收藏 所屬分類: flex
    <2011年3月>
    272812345
    6789101112
    13141516171819
    20212223242526
    272829303112
    3456789

     

    長春語林科技歡迎您!

    常用鏈接

    留言簿(6)

    隨筆分類

    隨筆檔案

    文章分類

    文章檔案

    相冊

    收藏夾

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 亚洲国产综合精品中文字幕| 99久在线国内在线播放免费观看| 97无码免费人妻超级碰碰碰碰| 亚洲视频一区在线| 四虎影视在线影院在线观看免费视频| 久久亚洲精品中文字幕三区| 99在线热播精品免费99热| 亚洲日韩av无码| 99视频在线免费| 亚洲一区二区三区高清视频| 亚洲成在人线aⅴ免费毛片| 亚洲午夜福利在线视频| 国产jizzjizz视频免费看| 成人免费夜片在线观看| 亚洲一区精品无码| 亚洲视频免费在线观看| 亚洲AV综合色区无码二区爱AV| 成人免费无码大片a毛片| 国产精品亚洲一区二区无码| 亚洲中文久久精品无码ww16| 一级毛片免费观看不卡的| 中文日韩亚洲欧美制服| 全部免费国产潢色一级| a级毛片在线免费| 亚洲免费闲人蜜桃| 免费国产成人高清在线观看麻豆| 三上悠亚电影全集免费| 亚洲成人免费网站| 免费人成视频在线观看视频| 国产啪精品视频网站免费尤物 | 亚洲情a成黄在线观看| 中文字幕免费在线看线人动作大片| 无码久久精品国产亚洲Av影片| 无码国产精品一区二区免费虚拟VR | 国产日韩AV免费无码一区二区三区 | 亚洲国产午夜福利在线播放| 无码精品国产一区二区三区免费| 日本亚洲免费无线码 | 国产精品V亚洲精品V日韩精品| 日韩在线永久免费播放| 日韩成人精品日本亚洲|