# Countdown number from PHP

**URL:** <https://forum.kirupa.com/t/countdown-number-from-php/310355>\
**Category:** flash\
**Created:** [June 8, 2010, 9:01am UTC](https://forum.kirupa.com/t/countdown-number-from-php/310355 "2010-06-08T09:01:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![keweli](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@keweli](https://forum.kirupa.com/u/keweli)\
**Post date:** [June 8, 2010, 9:01am UTC](https://forum.kirupa.com/t/countdown-number-from-php/310355/1 "2010-06-08T09:01:25Z")

</div>

I have been successful to the point where I actually see the txt\_hoursleft, txt\_minutesleft, txt\_secondsleft on a dynamic text field:

```auto
onClipEvent (load) {
    loadVariables("servertime.php", this);
}
onClipEvent (data) {
    txt_hoursleft = unescape(this.serverHours);
    txt_minutesleft = unescape(this.serverMinutes);
    secondsLeft = unescape(this.serverSeconds);
    seconds = int(secondsLeft);
    txt_secondsleft = seconds;

```

How do i make it countdown? An example with txt\_secondsleft would help me understand. Lets say I got from the PHP file 34 secs.  
I want it to show on the .swf 34 changing to 33 changing to 32… and so on.

Please help! thanks
