package {
import flash.display.Sprite;
import flash.text.TextField;
publicclass Main extends Sprite {
public function Main( ) {
var field:TextField = new TextField( );
var formatter:flash.text.TextFormat = new flash.text.TextFormat( );
formatter.color = 0x0000FF; // Make the text blue
field.defaultTextFormat = formatter;
field.text="text";
addChild(field);
}
}
}