flash question
flash question
Out of context: Reply #20
- Started
- Last post
- 23 Responses
- plus60
Hack way of ensuring formatting on dynamically created input field
var input_txt:TextField = this[name_str];
var txt_fmt:TextFormat = new TextFormat();with (txt_fmt)
{
font = "HelveticaNeue LT 65 Medium";
size = 11;
color = 0x1BA5C9;}
with (input_txt)
{text = "TEST";
wordWrap = true;
multiline = true;
textColor = 0x1BA5C9;type = "input";
}input_txt.setTextFormat(txt_fmt...
input_txt.text = ""
input_txt.onChanged = function()
{
this.setTextFormat(txt_fmt); // keep text formatted as user inputs
}hope that helps