zoukankan      html  css  js  c++  java
  • State and Effect demo,状态和效果简单示例

    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>
    

  • 相关阅读:
    Shapefile文件数据库操作ArcEngine +C#
    INewFeedBack接口ArcGlobe
    如何获取免费Aster GDem数据
    FUCK EFS!!!!!
    5种方法解除开机密码[转]
    blobtracking references[转]
    cvMatND
    二值图像相似性[转]
    OpenCV中打印CvMat的元素
    视觉&图像处理相关链接
  • 原文地址:https://www.cnblogs.com/wucg/p/2086648.html
Copyright © 2011-2022 走看看