# How to create a timer?

**URL:** <https://forum.kirupa.com/t/how-to-create-a-timer/299871>\
**Category:** flash\
**Created:** [November 12, 2009, 2:41am UTC](https://forum.kirupa.com/t/how-to-create-a-timer/299871 "2009-11-12T02:41:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![geestring](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@geestring](https://forum.kirupa.com/u/geestring)\
**Post date:** [November 12, 2009, 2:41am UTC](https://forum.kirupa.com/t/how-to-create-a-timer/299871/1 "2009-11-12T02:41:31Z")

</div>

basically I want something to happen every 5 seconds continuously.

I think i should be using a while loop with setInterval… but i think that’s as2.

does AS3 use a Timer class?
