createTextField and rotate

I want to rotate a dynamically created textfield, i opened “flash help” and took the sample code i found below (i changed the font with “Verdana”). But it seems that the font cant be embed and it dissapears.

Is that the problem, or what?
How can i solve it?

Thank u

var my_fmt:TextFormat = new TextFormat();
my_fmt.font = "Verdana";

this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 160, 120);
my_txt.wordWrap = true;
my_txt.embedFonts = true;
my_txt.text = "Hello world";
my_txt.setTextFormat(my_fmt);
my_txt._rotation = 45;


[SIZE=4]You need the font in the library to dynamically embed it in a text field!!![/SIZE]

Ok, i still need practise.:slight_smile:

I actually didnt knew that i can add a font to my library.

Thank u a lot Canadian

Glad to help :hoser: