Style Flex


    
    xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark">
    
        .myFontStyle {
            fontSize: 15;
            color: #9933FF;
        } 
    

     
         
        public function changeStyles(e:Event):void { 
            styleManager.getStyleDeclaration(".myFontStyle").setStyle("color",0x3399CC); 
        } 
      
    

            click="changeStyles(event)" />