flash on 2010-6-22

by barmamutha
♥0 | Line 44 | Modified 2010-06-22 18:52:20 | MIT License
play

ActionScript3 source code

/**
 * Copyright barmamutha ( http://wonderfl.net/user/barmamutha )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/ckRR
 */

<?xml version="1.0"?>
<!-- fonts/EmbeddedFontFaceCSSByName.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
  <mx:Style>
     @font-face {
        src:local("Myriad Web Pro");
        fontFamily: myPlainFont;
        advancedAntiAliasing: true;
     }

     @font-face {
        src:local("Myriad Web Pro");
        fontFamily: myItalicFont;
        fontStyle: italic;
        advancedAntiAliasing: true;
     }
  
     .mystyle1 {
        fontFamily:myPlainFont;
        fontSize: 32pt;
     }
     .mystyle2 {
        fontFamily:myItalicFont;
        fontSize: 32pt;
        fontStyle: italic;
     }
  </mx:Style>
  
  <mx:Panel title="Embedded Fonts Using CSS">
     <mx:VBox>
        <mx:Label 
            width="100%" 
            height="75" 
            styleName="mystyle1" 
            text="The text uses the plain typeface." 
            rotation="15"
        />
        <mx:Label 
            width="100%" 
            height="75" 
            styleName="mystyle2" 
            text="The text uses the italic typeface." 
            rotation="15"
        />
     </mx:VBox>
  </mx:Panel>
</mx:Application>