package{ import flash.display.Sprite; import flash.text.*; public class 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); } } }
Related Scripts with Example Source Code in same category :