If this is right, this is a huge bug in Flash. Can somebody please try this code and tell me if I’m wrong? Could it be a problem with my computer? Other values seem much closer to a correct result. This code:
var theTimer:Timer = new Timer(100, 0);
theTimer.addEventListener (TimerEvent.TIMER, trackTime);
theTimer.start ();
function trackTime (e:Event):void {
if (theTimer.currentCount % 10 == 0) {
trace (theTimer.currentCount);
}
}
should output every second, but only outputs about 36 times in a minute on my machine. Other values also seem to cause issues as well, but this one seems the worst. Can anyone confirm this? If needed, I will capture video of this happening and post it with another timer as a visual.