# PAusing for 5 secs - from the best of

**URL:** <https://forum.kirupa.com/t/pausing-for-5-secs-from-the-best-of/7139>\
**Category:** Uncategorized\
**Created:** [October 24, 2002, 1:53pm UTC](https://forum.kirupa.com/t/pausing-for-5-secs-from-the-best-of/7139 "2002-10-24T13:53:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hitby](https://avatars.discourse-cdn.com/v4/letter/h/dfb087/32.png) [@Hitby](https://forum.kirupa.com/u/Hitby)\
**Post date:** [October 24, 2002, 1:53pm UTC](https://forum.kirupa.com/t/pausing-for-5-secs-from-the-best-of/7139/1 "2002-10-24T13:53:09Z")

</div>

Hi, I’ve just been trying to use the code below to pause for five seconds.

Function moveFrames(){  
if(\_currentframe == 1){  
gotoAndStop(2);  
} else {  
gotoAndStop(1);  
}  
}  
setInterval (moveFrames, 50;

but I get the following error message

Symbol=logomc, Layer=Layer 3, Frame=1: Line 1: ‘;’ expected  
Function moveFrames(){

I’ve tried sticking a semi colon in almost everywhere with no luck, any ideas?? thanks

Danny

---

<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:** [October 24, 2002, 2:57pm UTC](https://forum.kirupa.com/t/pausing-for-5-secs-from-the-best-of/7139/2 "2002-10-24T14:57:52Z")

</div>

sorry for replying to myself but I have this code

Function; moveFrames(){  
if(\_currentframe == 1){  
gotoAndStop(2);  
} else {  
gotoAndStop(1);  
}  
}  
setInterval (moveFrames, 500);

it doesn’t pause at all, just plays as normal. am I misssing something, I did have it in a movie clip and I thought it could be that but I had the same problem when I tried it on the main timeline.

help?? 😕

Hitby

---

<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:** [October 24, 2002, 4:54pm UTC](https://forum.kirupa.com/t/pausing-for-5-secs-from-the-best-of/7139/3 "2002-10-24T16:54:11Z")

</div>

You have a ; after function??

And what do you want to do exactly?

pom :q:

---

<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:** [October 25, 2002, 7:50am UTC](https://forum.kirupa.com/t/pausing-for-5-secs-from-the-best-of/7139/4 "2002-10-25T07:50:49Z")

</div>

Hi, Don’t worry about that colon, its been everywhere and no where baby and thats where I’m at 🙂

I’m simply trying to get a two frame movie clip to pause on the first frame for 5 seconds before playing the second frame in a loop, Sadly enough I’m trying to get a bear to wink every five seconds, don’t worry though it wasn’t my idea 🙂

Cheers Hitby

---

<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:** [October 25, 2002, 2:23pm UTC](https://forum.kirupa.com/t/pausing-for-5-secs-from-the-best-of/7139/5 "2002-10-25T14:23:17Z")

</div>

Well, here’s an example. The code is really simple: if your clip is called _clip_ then just write:

```auto
function moveFrame(){
	clip.play();
}
setInterval(moveFrame,5000 );

```

provided that there’s a stop action in the clip.

Cheers.

pom :elderly:

---

<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:** [October 25, 2002, 3:48pm UTC](https://forum.kirupa.com/t/pausing-for-5-secs-from-the-best-of/7139/6 "2002-10-25T15:48:22Z")

</div>

thanks very much works perfic loike 🙂
