Rotating the button 45 degrees : Rotate « Event « Flex






Rotating the button 45 degrees

Rotating the button 45 degrees
        
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    backgroundColor="white">
    <mx:Rotate id="myEffect" angleTo="45" />
    <mx:Button label="Click on me" mouseDownEffect="{myEffect}" />
</mx:Application>

   
    
    
    
    
    
    
    
  








Related examples in the same category

1.Rotate and MoveRotate and Move
2.Rotate image around z-axis, with applyChangesPostLayout property set to false.Rotate image around z-axis, with applyChangesPostLayout property set to false.
3.Rotate after Button creation completedRotate after Button creation completed