# Set time (MX) question

**URL:** <https://forum.kirupa.com/t/set-time-mx-question/20482>\
**Category:** Uncategorized\
**Created:** [May 9, 2003, 1:25am UTC](https://forum.kirupa.com/t/set-time-mx-question/20482 "2003-05-09T01:25:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eyeball](https://avatars.discourse-cdn.com/v4/letter/e/5daacb/32.png) [@Eyeball](https://forum.kirupa.com/u/Eyeball)\
**Post date:** [May 9, 2003, 1:25am UTC](https://forum.kirupa.com/t/set-time-mx-question/20482/1 "2003-05-09T01:25:44Z")

</div>

hey everybody

i have a about 20 frame animation but what I want to do is to find out is there a way to set a time to play a certain frames i.e when movie starts it plays only 10 frames and then stops for a minute then after 1 minute it continues from frame 10 to frame 20 and then again stops for one minute and it starts over again

Thx so much

---

<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:** [May 9, 2003, 4:35am UTC](https://forum.kirupa.com/t/set-time-mx-question/20482/2 "2003-05-09T04:35:09Z")

</div>

you’ll achieve that easilly with setInterval()  
I suggest you read senocular’s article [here](http://www.umbc.edu/interactive/flash/tutorials/showpage.php?p=setInterval)

but it’s something like this:

```auto

stop();
here = this;
myInterval = setInterval(function () {
	here.play();
	clearInterval(myInterval);
}, 2000);

```

this code, attached to a frame, will stop the playhead for 2 seconds;
