Event listener for endEffect event : Effect Event « Effects « Flex






Event listener for endEffect event

Event listener for endEffect event
   
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
        
        import mx.effects.*;
        import mx.events.EffectEvent;
        import mx.core.UIComponent;
        private function endEffectListener(eventObj:EffectEvent):void {
            var effectObj:Effect = Effect(eventObj.target);
            var effectTarget:UIComponent = UIComponent(eventObj.effectInstance.target);
        }
      
    </mx:Script>
    <mx:Fade id="myFade" effectEnd="endEffectListener(event);" />
    <mx:Button id="myButton" mouseUpEffect="{myFade}" />
</mx:Application>

   
    
    
  








Related examples in the same category

1.Dispatch effectStart event and effectEnd event once per targetDispatch effectStart event and effectEnd event once per target
2.Get UIComponent from EffectEventGet UIComponent from EffectEvent
3.Play Move effect creationComplete event handlerPlay Move effect creationComplete event handler
4.Move effect end eventMove effect end event
5.Define an event listener for the endEffect eventDefine an event listener for the endEffect event
6.Event EffectsEvent Effects