package{
import flash.display.Sprite;
import flash.text.*;
publicclass Main extends Sprite{
public function Main(){
var t:TextField = new TextField( );
t.width = 400;
t.text = "This is bold text.";
var boldFormat:TextFormat = new TextFormat( );
boldFormat.bold = true;
t.setTextFormat(boldFormat);
t.appendText(" This is bold too.");
addChild(t);
}
}
}