Get UIComponent from EffectEvent : Effect Event « Effects « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Effects » Effect EventScreenshots 
Get UIComponent from EffectEvent
Get UIComponent from EffectEvent
   
<?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 endSlowFadeEffectListener(eventObj:EffectEvent):void
        {
            var effectObj:Effect = Effect(eventObj.target);
            var effectTarget:UIComponent =UIComponent(eventObj.effectInstance.target);
        }
      
    </mx:Script>
    <mx:Fade id="slowFade" duration="2000" effectEnd="endSlowFadeEffectListener(event);" />
    <mx:Button id="myButton1" creationCompleteEffect="{slowFade}" />
</mx:Application>

   
    
    
  
Related examples in the same category
1.Event listener for endEffect eventEvent listener for endEffect event
2.Dispatch effectStart event and effectEnd event once per targetDispatch effectStart event and effectEnd event once per target
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
ww__w._j_av___a2s.__c__om__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.