Mega Code Archive

 
Categories / Flex / Graphics
 

Apply boldface or oblique type to controls inline

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">     <mx:Style>     @font-face {         src:url("a.ttf");         fontFamily: myFont;         flashType: true;     }     @font-face {         src:url("a.ttf");         fontFamily: myFont;         fontWeight: bold;         flashType: true;     }     @font-face {         src:url("a.ttf");         fontFamily: myFont;         fontStyle: italic;         flashType: true;     }     .myStyle1 {         fontSize: 32;         fontFamily: myFont;     }     </mx:Style>     <mx:VBox styleName="myStyle1">         <mx:Label text="Plain Label"/>         <mx:Label text="Italic Label" fontStyle="italic"/>         <mx:Label text="Bold Label" fontWeight="bold"/>     </mx:VBox> </mx:Application>