# Tutorial: Countdown Timer?

**URL:** <https://forum.kirupa.com/t/tutorial-countdown-timer/208683>\
**Category:** flash\
**Created:** [December 1, 2006, 5:11am UTC](https://forum.kirupa.com/t/tutorial-countdown-timer/208683 "2006-12-01T05:11:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![garri](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/garri/32/3038_2.png) [@garri](https://forum.kirupa.com/u/garri)\
**Post date:** [December 1, 2006, 5:11am UTC](https://forum.kirupa.com/t/tutorial-countdown-timer/208683/1 "2006-12-01T05:11:46Z")

</div>

Good Day!

Do you guys know any tutorial on how to display this in Flash it is a Countdown Timer code:

```
       In case any newbie programmers are scratching their heads: 

```

// begin sample

timerCount = 135;

countDown = function() {  
timerCount = timerCount - 1;  
hours = int(timerCount / 3600);  
minutes = int((timerCount / 60) - (hours \* 60));  
seconds = int((timerCount % 60));  
}

timer = setInterval(countDown, 1000);

//end sample

from: [http://www.dreamincode.net/code/snippet122.htm](http://www.dreamincode.net/code/snippet122.htm)

sorry I’m just new to Flash and Actionscript.:kir:
