Mega Code Archive

 
Categories / Flex / Style
 

Embed Styles by Using CSS

<mx:Application     xmlns:mx="http://www.adobe.com/2006/mxml"     layout="vertical">     <mx:Style>         .header {             font-family: 'Arial';             font-size: 15px;             font-weight: 'bold';             color: #FFFFFF;         }         .message {             font-family: 'Arial';             font-size: 12px;             color: #336699;         }     </mx:Style>     <mx:Label text="I have a header style!" styleName="header" />     <mx:Text text="I have a message style!" styleName="message" /> </mx:Application>