import mx.effects.*;
private var fadeEffect:Fade;
private function createEffect(eventObj:Event):void {
fadeEffect=new Fade();
fadeEffect.duration=1000;
myButton.setStyle('mouseDownEffect', fadeEffect);
}