# AS3.0: Timer issues with browsers

**URL:** https://forum.kirupa.com/t/as3-0-timer-issues-with-browsers/213121
**Category:** flash
**Created:** [January 17, 2007, 2:24am UTC](https://forum.kirupa.com/t/as3-0-timer-issues-with-browsers/213121 "2007-01-17T02:24:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jwopitz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jwopitz/32/1556_2.png) [@jwopitz](https://forum.kirupa.com/u/jwopitz)
#### Post date: [January 17, 2007, 2:24am UTC](https://forum.kirupa.com/t/as3-0-timer-issues-with-browsers/213121/1 "2007-01-17T02:24:50Z")

</div>

So I have this Timer who’s interval is set to 10ms. This works as it expected when you are running just the swf locally. However when I run this via FF or IE, it runs considerably slower. Nearly 3 times as slow. The fla is set to 24fps but I thought timers ran independently of the frame rate.

So I am curious to know if there are any options I can use to get the browser working more like the stand alone swf. Below is some of the code that is sprinkled around the Model class:

ActionScript Code:  
[FONT=Courier New][LEFT]protected [COLOR=#000000] **var** [/COLOR] \_scoreboardTimerInterval:[COLOR=#0000ff]Number[/COLOR] = [COLOR=#000080]10[/COLOR];

\_scoreboardTimer = [COLOR=#000000] **new** [/COLOR] TimerCOLOR=#000000[/COLOR];  
\_scoreboardTimer.[COLOR=#000080]addEventListener[/COLOR][COLOR=#000000]([/COLOR]TimerEvent.[COLOR=#000080]TIMER[/COLOR], increaseScoreboardTime[COLOR=#000000])[/COLOR];

protected [COLOR=#000000] **function** [/COLOR] increaseScoreboardTime COLOR=#000000[/COLOR]:[COLOR=#0000ff]void[/COLOR] [COLOR=#000000]{[/COLOR]  
timeElapsed += \_scoreboardIncreaseIncrement;  
timeTotal += \_scoreboardIncreaseIncrement;  
[COLOR=#000000]}[/COLOR]  
[/LEFT]  
[/FONT]
