Apply Glow effect : Glow Effect « Effects « Flex






Apply Glow effect

Apply Glow effect
    
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="http://www.adobe.com/2006/mxml"
               width="460" height="428">
<s:Group width="400" height="300">
    <mx:Script>
        
            import flash.filters.*;
            protected const GLOW:Class = flash.filters.GlowFilter;
            
            protected function addFilter(value:Class):void {
                
                var arr:Array = this.filters.concat();
                var fil:BitmapFilter = new value() as BitmapFilter;
                arr.push(fil);
                filters = arr;
            }
      
    </mx:Script>
        <mx:Button click="addFilter(GLOW)" label="Glow"/>
</s:Group>
</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.Glow activate eventGlow activate event
7.Glow deactivate eventGlow deactivate event
8.Glow tweenUpdate eventGlow tweenUpdate event
9.Glow tweenStart eventGlow tweenStart event
10.Glow tweenEnd eventGlow tweenEnd event