Effect Trigger In ActionScript : Effect Trigger « Effects « Flex






Effect Trigger In ActionScript

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

1.Trigger of the data effectsTrigger of the data effects
2.An Effect Trigger ApplicationAn Effect Trigger Application