Hi- I’m new to this so probably missing something obvious, apologies. Kirupa taught me all I know…
Ok- so I’m trying to make a dynamic text field which is rotated to 45 degrees.
I found the livedocs explanation
and I’ve tried to make it work, but I cannot.
My code is
stop();
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = “verd”;
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;
where ‘verd’ is a font symbol in my library.
Is there a linkage stage I’m missing?
Any help would be greatly appreciated.
cheers!
N