Effects Flex


    
    xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark">
    
        
    

     
         
        import mx.effects.*; 
        import mx.events.EffectEvent; 
        import mx.core.UIComponent; 
        private function endSlowFadeEffectListener(eventObj:EffectEvent):void 
        { 
            // Access the effect object. 
            var effectObj:Effect = Effect(eventObj.target); 
            // Access the target component of the effect. 
            var effectTarget:UIComponent = 
            UIComponent(eventObj.effectInstance.target); 
            myTA.text = myTA.text + effectTarget.id + ' : '; 
            myTA.text = myTA.text + " " + eventObj.type + '\n'; 
        } 
      
    

    
                    effectEnd="endSlowFadeEffectListener(event);" targets="{[myButton1, myButton2, myButton3, myButton4]}" />
    

            creationCompleteEffect="{slowFade}" />
            creationCompleteEffect="{slowFade}" />
            creationCompleteEffect="{slowFade}" />
            creationCompleteEffect="{slowFade}" />