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