*** .align = "center"; ***

Just shoot me now, for the life of me I have been unable to get this text box to display centered.

PLEASE put me out of my missery !

[AS]
this.createTextField(“f_pack_amount_text”, 0, 0, 0, 80, 16);

f_pack_amount_text.setNewTextFormat(new TextFormat(“Verdana”, 10));
f_pack_amount_text.align = “center”;
f_pack_amount_text.border = true;

                  f_pack_amount_text.text = 10;

[/AS]

It’s a TextFormat property, not a TextField property! :wink:
[AS]this.createTextField(“f_pack_amount_text”, 0, 0, 0, 80, 16);
var myTextFormat = new TextFormat();
myTextFormat.font = “Verdana”;
myTextFormat.size = 10;
myTextFormat.align = “center”;
f_pack_amount_text.setNewTextFormat(myTextFormat);
f_pack_amount_text.border = true;
f_pack_amount_text.text = 10;[/AS]

Thanx kode

No problem. :stuck_out_tongue: