Apply BlurFilter to control : BlurFilter « Effects « Flex






Apply BlurFilter to control

Apply BlurFilter 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 {
            myBlurFilter = new BlurFilter(4, 4, 1);

            hs1.filters = [myBlurFilter];
        }
        public function changeFilters():void {
            color = 0x336633;
            createFilters();
        }
      </mx:Script>
    <mx:HSlider id="hs1" />
</mx:Application>

   
    
    
  








Related examples in the same category

1.Color of the filters when you click the buttonColor of the filters when you click the button