I am make an input textfield via actionscript and then applying a textformat, cannot type in it.
var format = new TextFormat();
with (format) {
font = "Tahoma";
size = 8;
bold = true;
}
createTextField("input",1,0,0,50,14);
input.type = "input";
input.background = true;
input.embedFonts = true;
input.setTextFormat(format);
If i now try to type in this box, nothing happens. However, If i do this:
var format = new TextFormat();
with (format) {
font = "Tahoma";
size = 8;
bold = true;
}
createTextField("input",1,0,0,50,14);
input.type = "input";
input.background = true;
input.embedFonts = true;
input.setTextFormat(format);
input.text = "test"
It not only puts it in the box(neatly formatted the way i like), I can also erase it and type what i want in the box. I’ve been toying with it for a while and can’t figure it out. Also if i comment out the embedFonts line, it works too(obviously without formatting).
Any Ideas?:h: