# Looking for a simple Actionscript Pause

**URL:** <https://forum.kirupa.com/t/looking-for-a-simple-actionscript-pause/246755>\
**Category:** flash\
**Created:** [December 14, 2007, 4:39am UTC](https://forum.kirupa.com/t/looking-for-a-simple-actionscript-pause/246755 "2007-12-14T04:39:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![orionstar](https://avatars.discourse-cdn.com/v4/letter/o/51bf81/32.png) [@orionstar](https://forum.kirupa.com/u/orionstar)\
**Post date:** [December 14, 2007, 4:39am UTC](https://forum.kirupa.com/t/looking-for-a-simple-actionscript-pause/246755/1 "2007-12-14T04:39:27Z")

</div>

I have used the code below to pause some timelines ( “paragraphs of text to read” advancing every 15 seconds ), however it has wreaked havoc on all my scenes. After a while scenes will play in succession DESPITE a stop(); at each end. I have used clearInterval(interval) at stragetic places hoping to quell the unwanted scene advance, but to no avail.

A simple pause for “x” seconds Actionscript2.0 which I can call a few times on one timeline and that which would not interfere with any other code as aforementioned would be so appreciated. I have been going absolutely nuts over this for over a day now.

Thanks in advance.

```auto
stop();
var interval:Number = setInterval(
  function():Void {
    play();
    clearInterval(interval);
  },
  15000
);

```
