# setInterval very slow in browsers?

**URL:** <https://forum.kirupa.com/t/setinterval-very-slow-in-browsers/234624>\
**Category:** flash\
**Created:** [August 3, 2007, 8:21pm UTC](https://forum.kirupa.com/t/setinterval-very-slow-in-browsers/234624 "2007-08-03T20:21:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![estevangalvez](https://avatars.discourse-cdn.com/v4/letter/e/e36b37/32.png) [@estevangalvez](https://forum.kirupa.com/u/estevangalvez)\
**Post date:** [August 3, 2007, 8:21pm UTC](https://forum.kirupa.com/t/setinterval-very-slow-in-browsers/234624/1 "2007-08-03T20:21:50Z")

</div>

I am making a Flash game, and the level moves depending on how far away you are from the center of the stage. I have to put these actions in a function called by a setInterval method because each level is an individual frame. I have the interval set to call the function every millisecond. It works fine in the standalone Flash Player, but when I put it in an HTML file it goes very slow. I have tested it in Firefox and IE7. Any help?
