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]