Rotate a Button with Rotate3D : Rotate3D « Graphics « Flex






Rotate a Button with Rotate3D

Rotate a Button with Rotate3D
       

<mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml" 
     xmlns:s="library://ns.adobe.com/flex/spark">
    
    <s:Rotate3D id="rotator1" autoCenterTransform="true" target="{btn1}" angleXFrom="0" angleXTo="360" />
    <s:Rotate3D id="rotator2" autoCenterTransform="true" target="{btn2}" angleYFrom="360" angleYTo="0" />
    
    <mx:VBox>
        <mx:Button id="btn1" label="(0) button" click="{rotator1.play();}" />
        <mx:Button id="btn2" label="(1) button" click="{rotator2.play();}" />
    </mx:VBox>
    
</mx:Application>

   
    
    
    
    
    
    
  








Related examples in the same category