# Again a pausing problem. Help please

**URL:** <https://forum.kirupa.com/t/again-a-pausing-problem-help-please/59990>\
**Category:** Uncategorized\
**Created:** [August 5, 2004, 12:21pm UTC](https://forum.kirupa.com/t/again-a-pausing-problem-help-please/59990 "2004-08-05T12:21:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mx\_guest2004](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@mx\_guest2004](https://forum.kirupa.com/u/mx_guest2004)\
**Post date:** [August 5, 2004, 12:21pm UTC](https://forum.kirupa.com/t/again-a-pausing-problem-help-please/59990/1 "2004-08-05T12:21:04Z")

</div>

Hi,  
I am in frame 1 and have let’s say 3 layers with a MC in each layer. I animate these MCs by onEnterFrame:  
[AS]  
MC1.onEnterFrame=function(){  
animation  
delete this.onEnterFrame;  
} //and the same for MC2 and MC3  
[/AS]  
Now I have all three MCs on the stage.  
After animating MC3, I want to animate MC1 again with another onEnterFrame and I want MC2 and MC3 remain on the stage.  
Do I have to move to frame 2? Or there is a method that I can do this from frame 1 too? The there must be a delay method for MC1 to wait MC3 is finished and then MC1 begins again.

Any help on this please?

mx-guest2004

---

<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:** [August 5, 2004, 7:27pm UTC](https://forum.kirupa.com/t/again-a-pausing-problem-help-please/59990/2 "2004-08-05T19:27:15Z")

</div>

Any help on this please? I have an example file here.

---

<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:** [August 5, 2004, 8:24pm UTC](https://forum.kirupa.com/t/again-a-pausing-problem-help-please/59990/3 "2004-08-05T20:24:46Z")

</div>

Maybe the problem lies in using the delete command? Once it is gone it is gone for good…you probably need to use another way to accomplish what you are trying to do.

I think delete might be one of those absolutes…

---

<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:** [August 6, 2004, 7:54am UTC](https://forum.kirupa.com/t/again-a-pausing-problem-help-please/59990/4 "2004-08-06T07:54:08Z")

</div>

Insert this code after the the frame, that is where you want to wait for next trigger event. For example if you want to stop the movie at 3 frame of a movieclip u shoudl insert this into the fourth frame of the MC. Pls check the comments in the code…

if (start == undefned){  
start = getTimer ()/1000;  
}  
counter = getTimer ()/1000;

if (counter - start \< 3){  
gotoAndPlay(\_currentframe - 1);  
}else {  
start = undefined;

//The rest of the conditions you can apply here

//End conditions  
}

---

<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:** [August 6, 2004, 8:00am UTC](https://forum.kirupa.com/t/again-a-pausing-problem-help-please/59990/5 "2004-08-06T08:00:10Z")

</div>

Sorrry after downloaded your source file i think the last answer i’ve given is not useful. I really wish to help you to this matter may be on tomorrow. I’m in a little hurry to finish some works for myself. Ok… see u again sooner or later .

🙂
