Repeat Rotate effect until the user clicks a Button control : Rotate Effect « Effects « Flex






Repeat Rotate effect until the user clicks a Button control

Repeat Rotate effect until the user clicks a Button control
   
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Rotate id="myRotate" repeatCount="0" />
    <mx:Image source="@Embed(source='logo.jpg')" mouseDownEffect="{myRotate}" />
    <mx:Button id="myButton" label="Stop Rotation" click="myRotate.end();" />
</mx:Application>

   
    
    
  








Related examples in the same category

1.Rotate effectRotate effect
2.Use Rotate effectUse Rotate effect
3.Set Rotate effect target, origin positionSet Rotate effect target, origin position