Effects Flex



    xmlns:mx="library://ns.adobe.com/flex/mx"
    xmlns:s="library://ns.adobe.com/flex/spark">
     
        import spark.filters.*; 
        private var dsf:DropShadowFilter; 
        public function toggleFilter():void { 
            trace(label1.filters.length); 
            if (label1.filters.length == 0) { 
                /* 
                The first four properties of the DropShadowFilter constructor are 
                distance, angle, color, and alpha. 
                */ 
                dsf = new DropShadowFilter(5,30,0x000000,.8); 
                label1.filters = [dsf]; 
            } else { 
                label1.filters = null; 
            } 
        }