title: Flash CS5, dynamic font embeding problem
body: <p>I'm trying to create dynamic textfield with font embedding. Embeding is dynamic like this:<br></p>
  
  <pre><code>public class TextFormats extends TextFormat {
  
      private var TF:TextFormat = new TextFormat();
      [Embed(source = "/fonts/tahoma.ttf", fontWeight = "normal", fontFamily = "tahomaNormal")]
      var fontTahoma:Class;               
  
      private var fTahoma:Font;
  
      public function TextFormats():void {
          fTahoma = new fontTahoma();
      }
  
      public function format(fmb:String):TextFormat {
          TF.letterSpacing = -1;
          TF.font = fTahoma.fontName;     
          switch(fmb) {
              case "combolist_label":                 
                  TF.color = 0x383838;
                  TF.size = 13;
                  TF.letterSpacing = 0;
                  break;                  
          }
          return TF;
      }
  }   
  </code></pre>
  
  <p>When I compile it in flash CS4, embeded text appears on stage fine! But, when I tried to compile it with flash CS5, the text do not appear and no error warnings.<br>
  What is the reason? Should I use another methods for font embeding?!</p>