Mega Code Archive

 
Categories / Flex / Components
 

Styling Label

<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"     creationComplete="initStyles()">          <mx:Script>                                   private function initStyles():void             {                 myLabel.setStyle("fontWeight", "bold");                 myLabel.setStyle("fontSize", 20);             }                         </mx:Script>          <mx:Label id="myLabel" text="Component Styles" />      </mx:Application>