return to tutorial

Your code should look like this:

var textYellow:TextField = new TextField();
textYellow.text = "YELLOW";
textYellow.autoSize = TextFieldAutoSize.LEFT;
addChild(textYellow);
textYellow.x = 25;
textYellow.y = 75;
textYellow.setTextFormat(labelFormat);

 

screenshot 15