# AS timing functions

**URL:** <https://forum.kirupa.com/t/as-timing-functions/255684>\
**Category:** flash\
**Created:** [March 25, 2008, 10:29pm UTC](https://forum.kirupa.com/t/as-timing-functions/255684 "2008-03-25T22:29:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![suvenier](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@suvenier](https://forum.kirupa.com/u/suvenier)\
**Post date:** [March 25, 2008, 10:29pm UTC](https://forum.kirupa.com/t/as-timing-functions/255684/1 "2008-03-25T22:29:27Z")

</div>

setInterval and setTimeOut both call a function in x mili seconds.

But the code keeps running.

Insent there a Sleep function?

well to be more specific I’m making a Sports manager game.

I got the game algoritm all done and it of course runs too quikly making it impossible to follow the game’s text.

I need to slow it down by making pauses between the game actions.

Like:

X passes ball to Y;

PAUSE

Y passes ball to Z;

PAUSE

etc.

can I order Flash: “DON’T YOU keep going on the code until 1000 milisecondes passe.”

(sorry, guess this may be a redundant and boring theme but i cant figure it out):gm:
