# Change string/variable color?(textfield)

**URL:** <https://forum.kirupa.com/t/change-string-variable-color-textfield/323858>\
**Category:** flash\
**Created:** [July 21, 2011, 12:02pm UTC](https://forum.kirupa.com/t/change-string-variable-color-textfield/323858 "2011-07-21T12:02:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zenor](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/zenor/32/3634_2.png) [@Zenor](https://forum.kirupa.com/u/Zenor)\
**Post date:** [July 21, 2011, 12:02pm UTC](https://forum.kirupa.com/t/change-string-variable-color-textfield/323858/1 "2011-07-21T12:02:08Z")

</div>

Hello, I am building a project where I got XML text displayed on a textfield.  
How can I change a specific word’s color through actionscript 3 instead of doing it on XML?

I though of creating a String variable for my word and then using that variable in my textfield.text, it works but is it possible to set a color for that variable?
