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