Mega Code Archive
Categories
/
Flex
/
Style
Cast target to a UIComponent before calling the setStyle() method
import mx.core.UIComponent; private function myEventHandler(e:Event):void { UIComponent(e.currentTarget).setStyle("color", "red"); }