Hi,

I have a doubt in textformat used in a class file.

Check out my class file timer.as:

class timer {
function return() {
var textformat:TextFormat = new TextFormat();
textformat.align = "center";
textformat.bold = true;
textformat.font= "Verdana";
textformat.size= 20;

_root.createTextField("time_txt",1,10,10,50,20);
_root.time_txt.border = true;
_root.time_txt.text = "Hello";
_root.time_txt.setNewTextFormat(textformat);
}
}


I just called return() function in fla. Output is coming as Hello in the screen, but that textformat is not applying for the time_txt textbox.

Is there any solution???