Hello
I’ve managed to put a text field onto the stage using AS2 but now I’m trying to make it stay in the center of the stage. Here’s the code I used;
this.createTextField("dynamic_txt",1,(Stage.width/2),(Stage.height/2),1,1);
dynamic_txt.text = "This is just a test to see if this works.";
var textstyle:TextFormat = new TextFormat();
textstyle.size = 18;
textstyle.font = "Arial";
dynamic_txt.setTextFormat(textstyle);
dynamic_txt.autoSize = true;
Right now it looks like this;
How do I make it look like this?
Thanks