私はゲームに取り組んでいます。ゲームプレイは本当に小さな時間経過に基づいています(アクションを実行するのに5秒しかかかりません)。 私のタイマーはFlash Playerでうまくいきます。私は5秒あります。 Webブラウザ(firefox、safari ..)では、5秒タイマーが8秒になりました。フラッシュゲーム:getTimerが間違っている
これを解決するにはどうすればよいですか?
private function updateTimer(e:TimerEvent)
{
if (this.timer.currentCount < 500)
{
var centiemes:int = 100 - Math.floor(this.timer.currentCount) % 100;
var secondes:int = 4 - Math.floor(this.timer.currentCount/100) % 60;
this.txtTemps.text = ToolBox.zeroFill(secondes.toString(), 2) + ":" + ToolBox.zeroFill(centiemes.toString(), 2);
}
else
{
this.txtTemps.text = "00:00";
this.timer.stop();;
}
}
おかげであなたは:ここでは は私が時間を表示私のコードです!
これと同じ問題はありますか? http://stackoverflow.com/questions/1014009/as3-how-accurate-are-the-gettimer-method-and-the-timer-class – MrKiane
いいえ、それはAdobeがこれを修正する必要があるようです。 Timerは、フレームレートがプロセッサーをベースにしていて、異なる可能性があるために配置されたようです。 –