Styles, not properties, are used to change attributes such as color:

http://livedocs.adobe.com/flex/201/langref/mx/controls/TextInput.html#styleSummary

Use the setStyle() method to change color.
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-----Original Message-----
From: timgerr <[EMAIL PROTECTED]>
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Changing the color of a textinput
Date: Tue, 22 Jul 2008 20:59:43 -0000

I am creating an textinput and I was wondering how to change the color
of it. I am doing this dynamically, here is what I am doing:
private var txt:TextInput = new TextInput();
txt.maxChars = 255;
addChild(txt);

There is no option to change the color, do I have to use css to do this?

Thanks,
timgerr




 


Reply via email to