# \[CS3\] Pausing a looping movie clip at a specified moment

**URL:** https://forum.kirupa.com/t/cs3-pausing-a-looping-movie-clip-at-a-specified-moment/278196
**Category:** flash
**Created:** [December 23, 2008, 8:06pm UTC](https://forum.kirupa.com/t/cs3-pausing-a-looping-movie-clip-at-a-specified-moment/278196 "2008-12-23T20:06:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![PMcC](https://avatars.discourse-cdn.com/v4/letter/p/85f322/32.png) [@PMcC](https://forum.kirupa.com/u/PMcC)
#### Post date: [December 23, 2008, 8:06pm UTC](https://forum.kirupa.com/t/cs3-pausing-a-looping-movie-clip-at-a-specified-moment/278196/1 "2008-12-23T20:06:24Z")

</div>

I am building a non-interactive animation based on slot machine reels which will be exported as a quicktime movie and burned to a DVD for playback.

To create the looping of the three reels, I’ve used the following script:

```auto

onClipEvent (load) {
     looping.duplicateMovieClip("slots");
     slots._y=looping._y+looping._height;
     loopStarty=this._y
     loopSpeed=30;
}

onClipEvent (enterFrame) {
     if(_root.bg.loopStart) {
          this._y-=loopSpeed;
          if(this._y<=(loopStarty-looping._height)) {
               this._y=loopStartx-loopSpeed;
          }
     }
}

```

However, I want to pause the looping at specified moments in order to match up the images (like winning on a slot machine). I’m assuming that there is a function in which I can say “Pause ‘slots’ after looping 1.3 times for 30 seconds” or “Pause ‘slots’ for 30 seconds after looping for 3 seconds”.

Again, there is no interactivity - this is just a looping animation that will run on a screen.

Thanks!
