12-08-2010 02:20 AM
Hi,
I want to validate a textinput, for this purpose i need to fill color qnx textInput as red color.
i have used
var _text_input:TextInput = new TextInput(); var fmt:TextFormat = new TextFormat(); fmt.color = 0xF0F0F0; _text_input.format = fmt; addChild(_text_input);
But The color did not changed, any idea ?
12-08-2010 03:57 AM
Use the defaultTextFormat for setting default text format. It will be applied to all text which will be inserted later, during program execution.