# setInterval() Help please!

**URL:** <https://forum.kirupa.com/t/setinterval-help-please/56781>\
**Category:** Uncategorized\
**Created:** [July 7, 2004, 6:44pm UTC](https://forum.kirupa.com/t/setinterval-help-please/56781 "2004-07-07T18:44:40Z")\
**Posts on this page:** 2\
**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:** [July 7, 2004, 6:44pm UTC](https://forum.kirupa.com/t/setinterval-help-please/56781/1 "2004-07-07T18:44:40Z")

</div>

Hi,  
I want to have control on my movie with setInterval(). I have three MCs in their own layers which would appear on the stage in turn.  
In frame one I have a fadeIn function for MC1 which works ok.  
I want that MC2 appears after 3 seconds and MC3 after 6 seconds.  
Where do I put setInterval functions for MC2 and MC3? I mean which frame in their own layer?  
Thanks,  
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:** [July 8, 2004, 5:15am UTC](https://forum.kirupa.com/t/setinterval-help-please/56781/2 "2004-07-08T05:15:43Z")

</div>

Ok. Nobody answered.  
I think I have to use some kind of pausing function to make a time delay for my MCs.  
I found this code for pausing and put in the first frame in a seperate layer. In that first frame in another layer I call this function for one of my MCs, but it doesn’t work.  
[AS]  
movieclip.prototype.Pause = function(pzeit) {  
var go = function(obj) {  
obj.play();  
clearInterval(id);  
}  
this.stop();  
var id = setInterval(go,pzeit,this);  
}  
[/AS]  
and call this function in same frame (another layer):  
[AS]  
onClipEvent (load) {  
this.Pause(3000);  
}  
[/AS]

mx-guest2004
