# Help getting timer based on setInterval to work

**URL:** <https://forum.kirupa.com/t/help-getting-timer-based-on-setinterval-to-work/233182>\
**Category:** flash\
**Created:** [July 20, 2007, 9:06pm UTC](https://forum.kirupa.com/t/help-getting-timer-based-on-setinterval-to-work/233182 "2007-07-20T21:06:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ironchefmoto](https://avatars.discourse-cdn.com/v4/letter/i/91b2a8/32.png) [@ironchefmoto](https://forum.kirupa.com/u/ironchefmoto)\
**Post date:** [July 20, 2007, 9:06pm UTC](https://forum.kirupa.com/t/help-getting-timer-based-on-setinterval-to-work/233182/1 "2007-07-20T21:06:28Z")

</div>

I’m building out the basic code for a timer that does 2 things:

[LIST]  
[_]Counts down “bonus points” – 10th of the total milliseconds in the timer  
[_]Count down seconds and tenths of seconds  
[/LIST]

The bonus points will tick down along with the time – this is part of a larger quiz interactive project that I’m putting together.

I can’t quite figure out the following (my math is bad, I think):

[LIST]  
[_]Why can’t the setInterval fire off in 1 millisecond increments? Is it too fast for the Flash Player to handle?  
[_]What’s wrong with my math for the milliseconds on the time? I’d like to ONLY show 10ths of a second instead of thousandths.  
[/LIST]

The file is attached. Feel free to use it for whatever, if you like. I just need some input on the issues above.

Thanks,  
IronChefMorimoto
