Text Formatting

i have seen many tutorials/responses for this in earlier versions but those only seem to work with AS2.

my problem is that i can’t get the letterspacing property to function in a dynamic text box, i have tested it with color and it works just fine. just letterspacing. And i have embeded the font, so i know it isn’t that.

The code affecting the text box is this.


var txt_box0:TextField

var format1:TextFormat = new TextFormat();
format1.letterSpacing = 4
//trace(format1.letterSpacing)

txt_box0.setTextFormat(format1)

Those working with AS2 have had similar problems but managed to fix it by typing “setNewTextFormat”, which has been phased out in AS3.