Embedded font warning : Text format : TextField Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » TextField » Text format »

 

Embedded font warning


 

package{
  import flash.display.Sprite;
  import flash.text.*;  
  public class Main extends Sprite{
    public function Main(){
        var t:TextField = new TextField(  );
        t.text = "hello world";
        
        var fontFormat:TextFormat = new TextFormat(  );
        fontFormat.font = "Courier New";
        var boldFormat:TextFormat = new TextFormat(  );
        boldFormat.bold = true;
        
        t.setTextFormat(fontFormat, 011);
        t.setTextFormat(boldFormat, 611);
        addChild(t);
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo TextField
» Text format