# Question about how to change color of dynamic text

**URL:** <https://forum.kirupa.com/t/question-about-how-to-change-color-of-dynamic-text/304470>\
**Category:** Uncategorized\
**Created:** [February 8, 2010, 3:36pm UTC](https://forum.kirupa.com/t/question-about-how-to-change-color-of-dynamic-text/304470 "2010-02-08T15:36:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucidelement](https://avatars.discourse-cdn.com/v4/letter/l/48db29/32.png) [@lucidelement](https://forum.kirupa.com/u/lucidelement)\
**Post date:** [February 8, 2010, 3:36pm UTC](https://forum.kirupa.com/t/question-about-how-to-change-color-of-dynamic-text/304470/1 "2010-02-08T15:36:31Z")

</div>

I am somewhat new to Actionscipt and I need a bit of help. I have created a dynamic text box that is being fed from an xml file. Depending on the data (whether positive or negative), I would like the output text to either be green or red (green for positive, red for negative). I’m sure that has to be a condition statement written and applied to the object, but I do not know how to do. Can someone advise or write the script lines in Actionscript that can achieve this? Any help with this would be greatly appreciated.
