Styling Label : Label « Components « Flex
- Flex
- Components
- Label
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>
Related examples in the same category