ActionScript and WipeLeft effect
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="createEffect(event);">
<mx:Script>
import mx.effects.*;
private var myWL:WipeLeft;
private function createEffect(eventObj:Event):void {
myWL=new WipeLeft();
myWL.duration=1000;
myButton.setStyle('mouseDownEffect', myWL);
myOtherButton.setStyle('mouseDownEffect', myWL);
}
</mx:Script>
<mx:Button id="myButton" />
<mx:Button id="myOtherButton" />
</mx:Application>
Related examples in the same category