# Pause/setInterval Question

**URL:** <https://forum.kirupa.com/t/pause-setinterval-question/113736>\
**Category:** Uncategorized\
**Created:** [June 21, 2004, 2:22pm UTC](https://forum.kirupa.com/t/pause-setinterval-question/113736 "2004-06-21T14:22:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skurge](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@Skurge](https://forum.kirupa.com/u/Skurge)\
**Post date:** [June 21, 2004, 2:22pm UTC](https://forum.kirupa.com/t/pause-setinterval-question/113736/1 "2004-06-21T14:22:18Z")

</div>

I’m trying to create a pause when I enter a scene within my movie. I’ve tried using setInterval within a function but it creates havoc within the rest of my scenes.

Example:  
I’d like to set a pause within scene 3 of my movie, aprox. 10 secs.  
When I do this using sample code below it works but when I get to scene one it also pauses and then plays which isn’t what I want. I just want whichever scene I specify to pause and ev. else stay the same.

Any suggestions?  
Thanks,

SKURGE

function timer(){  
//trace(“10 seconds has passed…going to next scene”);  
//delete this.timeOut; //when you want to kill timer  
nextScene();  
};

this.timeOut = setInterval(this,“timer”, 3000);
