# Stop timeline for few seconds?

**URL:** <https://forum.kirupa.com/t/stop-timeline-for-few-seconds/42546>\
**Category:** Uncategorized\
**Created:** [February 10, 2004, 6:58am UTC](https://forum.kirupa.com/t/stop-timeline-for-few-seconds/42546 "2004-02-10T06:58:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanjay2211](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@sanjay2211](https://forum.kirupa.com/u/sanjay2211)\
**Post date:** [February 10, 2004, 6:58am UTC](https://forum.kirupa.com/t/stop-timeline-for-few-seconds/42546/1 "2004-02-10T06:58:24Z")

</div>

Hi ! all

I want to stop my timeline for few seconds, how I can ???

I try with setInterval, but i think i do mistake somewhere,

Can anyone give me the exact script for that.

plz. help me in that…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 10, 2004, 8:47am UTC](https://forum.kirupa.com/t/stop-timeline-for-few-seconds/42546/2 "2004-02-10T08:47:04Z")

</div>

function unpause() {  
gotoAndPlay(\_currentframe+1);  
clearInterval(my\_interval);  
}  
my\_interval = setInterval(unpause, 5000);  
stop();

This is for 5 seconds stop…(5000 milliseconds)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 10, 2004, 4:46pm UTC](https://forum.kirupa.com/t/stop-timeline-for-few-seconds/42546/3 "2004-02-10T16:46:20Z")

</div>

Ok… what’s the Interval thingy…? I don’t think i’ve ever come across it while I played around with AS ( nooblet here) so… what is it?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 10, 2004, 4:57pm UTC](https://forum.kirupa.com/t/stop-timeline-for-few-seconds/42546/4 "2004-02-10T16:57:58Z")

</div>

sanjay: You posted the exactly same question the other day, and I answered with the same exactly code that amaze gave you. Heres the thread: [link](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=47095)  
Please do not post multiple threads on the same subject next time.

Spirit: Check this tutorial  
[http://www.kirupa.com/developer/actionscript/setinterval.htm](http://www.kirupa.com/developer/actionscript/setinterval.htm)
