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