Mega Code Archive

 
Categories / Flex / Style
 

Use CSS to Style Components

<mx:Application     xmlns:mx="http://www.adobe.com/2006/mxml"     layout="vertical">     <mx:Style>         .labelStyle {             font-family: 'Arial';             font-size: 20px;             font-weight: 'bold';             color: #FFFFFF;         }     </mx:Style>     <mx:Label text="Hello Flex!" styleName="labelStyle" /> </mx:Application>