State and Effect demo,狀態和效果簡單樣本

來源:互聯網
上載者:User

from:Flex與ActionScript3.0程式開發

<?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="955" minHeight="600" width="467" height="486"><mx:transitions><mx:Transition fromState="*" toState="*"><mx:Parallel targets="{[panel1,panel2,panel3]}"><mx:Resize></mx:Resize><mx:Move></mx:Move></mx:Parallel></mx:Transition></mx:transitions><mx:states><mx:State name="state02"><mx:SetProperty target="{panel1}" name="width" value="143"/><mx:SetProperty target="{panel1}" name="height" value="143"/><mx:SetProperty target="{panel1}" name="x" value="54"/><mx:SetProperty target="{panel1}" name="y" value="333"/><mx:SetProperty target="{panel2}" name="x" value="10"/><mx:SetProperty target="{panel2}" name="y" value="10"/><mx:SetProperty target="{panel2}" name="width" value="447"/><mx:SetProperty target="{panel2}" name="height" value="300"/></mx:State><mx:State name="state03"><mx:SetProperty target="{panel1}" name="width" value="143"/><mx:SetProperty target="{panel1}" name="height" value="143"/><mx:SetProperty target="{panel1}" name="x" value="54"/><mx:SetProperty target="{panel1}" name="y" value="333"/><mx:SetProperty target="{panel3}" name="x" value="10"/><mx:SetProperty target="{panel3}" name="y" value="10"/><mx:SetProperty target="{panel3}" name="width" value="447"/><mx:SetProperty target="{panel3}" name="height" value="300"/><mx:SetProperty target="{panel2}" name="x" value="274"/><mx:SetProperty target="{panel2}" name="y" value="333"/></mx:State></mx:states><mx:Panel x="10" y="10" width="447" height="300" layout="absolute" title="panel1" id="panel1" click="this.currentState='';"></mx:Panel><mx:Panel x="54" y="333" width="143" height="143" layout="absolute" title="panel2" id="panel2" click="this.currentState='state02';"></mx:Panel><mx:Panel x="274" y="333" width="143" height="143" layout="absolute" title="panel3" id="panel3" click="this.currentState='state03';"></mx:Panel></mx:Application>

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.