# Extending the Timer class

**URL:** https://forum.kirupa.com/t/extending-the-timer-class/281432
**Category:** flash
**Created:** [February 9, 2009, 11:35am UTC](https://forum.kirupa.com/t/extending-the-timer-class/281432 "2009-02-09T11:35:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Alber\_Kidd](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@Alber\_Kidd](https://forum.kirupa.com/u/Alber_Kidd)
#### Post date: [February 9, 2009, 11:35am UTC](https://forum.kirupa.com/t/extending-the-timer-class/281432/1 "2009-02-09T11:35:16Z")

</div>

Hi,

has anyone ever extended the timer class to include a 3rd parameter - a function name which calls the function after the time delay? This would be very handy for timing animations. If anyone can point me to a class or get me a start in building this class I would appreciate it.

I could just load them up and watch them go.

var myTimer:Timer = new Timer(200, 1, myFunction);  
var myTime:Timer = new Timer(400, 1, myFunction2);

Thanks.
