Полный код:

Код AS3:
package {
import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFormat;
public class TestProj extends Sprite {
public function TestProj()
{
[Embed(source='c:/windows/fonts/Comic.ttf', fontFamily="Comic", embedAsCFF="false")] var MyFont:Class;
var txt :TextField = new TextField();
txt.embedFonts = true;
txt.defaultTextFormat = new TextFormat("Comic", 12, 0);
txt.text = "Test test test";
addChild(txt);
}
}
}