Rotate a Button with Rotate3D : Rotate3D « Graphics « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Graphics » Rotate3DScreenshots 
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
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.