Friday, December 18, 2009

Change text color at runtime

if you want to change your text color at run-time then use textColor property of the TextField.
Here is the sample code: (if your TextFiel's instance name is "txtArea")

txtArea.textColor = 0x66CC66;

now your text became green color. ;)

No comments:

Post a Comment