Glow activate event : Glow Effect « Effects « Flex






Glow activate event

Glow activate event
       


<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
    
    <mx:Script>
        
            private function onEvent( event : Event ) : void
            {
                trace( event.type + " event occurred" );
            }
      
    </mx:Script>
    
    <mx:Button label="Play Effect" >
        <mx:mouseDownEffect>
            <mx:Glow color="#FF0000" 
                activate="onEvent( event )"/>
        </mx:mouseDownEffect>
    </mx:Button>
    
</mx:Application>

   
    
    
    
    
    
    
  








Related examples in the same category

1.Playing an effect with ActionScript and Glow controlPlaying an effect with ActionScript and Glow control
2.Using a Glow effect on the buttonUsing a Glow effect on the button
3.Glow effectStart eventGlow effectStart event
4.Glow effectEnd eventGlow effectEnd event
5.Glow EffectGlow Effect
6.Apply Glow effectApply Glow effect
7.Glow deactivate eventGlow deactivate event
8.Glow tweenUpdate eventGlow tweenUpdate event
9.Glow tweenStart eventGlow tweenStart event
10.Glow tweenEnd eventGlow tweenEnd event