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);
}