Style Flex


    
    xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
    creationComplete="initializeEffect(event);">
    
        
    

     
         
        import flash.events.Event; 
        private function initializeEffect(eventObj:Event):void { 
            myB.setStyle("mouseDownEffect", myWL); 
        }