# Two timers in one? HELP?

**URL:** <https://forum.kirupa.com/t/two-timers-in-one-help/321269>\
**Category:** flash\
**Created:** [April 14, 2011, 5:07pm UTC](https://forum.kirupa.com/t/two-timers-in-one-help/321269 "2011-04-14T17:07:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheAwesomeDude](https://avatars.discourse-cdn.com/v4/letter/t/f05b48/32.png) [@TheAwesomeDude](https://forum.kirupa.com/u/TheAwesomeDude)\
**Post date:** [April 14, 2011, 5:07pm UTC](https://forum.kirupa.com/t/two-timers-in-one-help/321269/1 "2011-04-14T17:07:19Z")

</div>

This is what my code looks like right now.

```php
var Timer1:Timer = new Timer(500);
var Timer2:Timer = new Timer(2500);

Timer1.addEventListener(TimerEvent.TIMER, OnStart);

Timer1.start();
Timer2.start();
 
function OnStart(e:Event){

Alot of code here.

```

But I kinda need to do like this:  
Timer1 || Timer2.addEventListener(TimerEvent.TIMER, OnStart);  
But that doesnt work ofcourse. So how can I solve that? I kinda need everything to be in this EventListener, otherwise it will be alot of code.
