Apply GlowFilter to control
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="createFilters()">
<mx:Script>
import flash.filters.*;
private var myBlurFilter:BlurFilter;
private var myGlowFilter:GlowFilter;
private var myBevelFilter:BevelFilter;
private var myDropShadowFilter:DropShadowFilter;
private var color:Number = 0xFF33FF;
public function createFilters():void {
myGlowFilter = new GlowFilter(color, .8, 6, 6, 2, 1,false, false);
hs1.filters = [myGlowFilter];
}
public function changeFilters():void {
color = 0x336633;
createFilters();
}
</mx:Script>
<mx:HSlider id="hs1" />
</mx:Application>
Related examples in the same category