# Count Down Timer Problem~ please help!

**URL:** <https://forum.kirupa.com/t/count-down-timer-problem-please-help/325138>\
**Category:** Uncategorized\
**Created:** [September 28, 2011, 3:41am UTC](https://forum.kirupa.com/t/count-down-timer-problem-please-help/325138 "2011-09-28T03:41:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dandancc](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@dandancc](https://forum.kirupa.com/u/dandancc)\
**Post date:** [September 28, 2011, 3:41am UTC](https://forum.kirupa.com/t/count-down-timer-problem-please-help/325138/1 "2011-09-28T03:41:55Z")

</div>

I have copy the following Count Down Timer for my flash game, but i wanna make the text colour become to RED when 20 sec and after. but I dunno how to make it \>\_\<~

please help!!

this.onEnterFrame = function ()  
{  
minute = int(\_root.rtime / 2160);  
second = int(\_root.rtime % 2160 / 36);  
msecond = int(\_root.rtime % 36 \* 100 / 36);

```
if (minute &lt; 10)
{
    min = "0" add minute;
}
else
{
    min = minute;
} // end else if
if (second &lt; 10)
{
    sec = "0" add second;
}
else
{
    sec = second;
} // end else if
if (msecond &lt; 10)
{
    msec = "0" add msecond;
}
else
{
    msec = msecond;
} // end else if
_root.timetext = min add " : " add sec add " : " add msec;

```

if(min == 0 && sec \<= 20) {

[please help \>\_\<~]

}

Thanks all!!:stormtrooper:
