# Pause movie clips?

**URL:** https://forum.kirupa.com/t/pause-movie-clips/2682
**Category:** flash
**Created:** [April 30, 2002, 8:17am UTC](https://forum.kirupa.com/t/pause-movie-clips/2682 "2002-04-30T08:17:45Z")
**Posts on this page:** 6
**Page:** 1

<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: [April 30, 2002, 8:17am UTC](https://forum.kirupa.com/t/pause-movie-clips/2682/1 "2002-04-30T08:17:45Z")

</div>

hi all, just wanted to know is there a way to pause all the movie clips except 1 in a scene. Coz i want a scene where everything is playing and when an action occurs to a movie clip, it continues playing but pauses the rest halfway through their animations…

---

<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: [April 30, 2002, 5:39pm UTC](https://forum.kirupa.com/t/pause-movie-clips/2682/2 "2002-04-30T17:39:27Z")

</div>

There is a thread on this somewhere here, i bet it was / should’ve been moved to the “best of”, try to find it there…

---

<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: [April 30, 2002, 7:21pm UTC](https://forum.kirupa.com/t/pause-movie-clips/2682/3 "2002-04-30T19:21:34Z")

</div>

Oh, yeah it SHOULD HAVE BEEN posted there, but I don’t think it was. I’ll try and find it.\r\rpom 0]

---

<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: [April 30, 2002, 11:27pm UTC](https://forum.kirupa.com/t/pause-movie-clips/2682/4 "2002-04-30T23:27:19Z")

</div>

one tactic is to stop everything, and then restart the movie you want to continue playing.\r\rassuming all your movies are in \_root, we can use a for in loop:

```auto
 \r\rfor(m in _root){\r\r _root[m].stop();\r\r}\r\r_root.movieToPlay.play();

```

\rthere’s probably more than just movies in \_root (even in a programmatic sense), and this is sending the stop method _everything_ but won’t really do any harm.

---

<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: [April 30, 2002, 11:51pm UTC](https://forum.kirupa.com/t/pause-movie-clips/2682/5 "2002-04-30T23:51:29Z")

</div>

Would this still work in MX, with something like this :

```auto
  for(m in _root){\r\r _root[m].onEnterFrame = null ;\r\r}

```

pom 0] \r

---

<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 10, 2002, 10:17pm UTC](https://forum.kirupa.com/t/pause-movie-clips/2682/6 "2002-05-10T22:17:06Z")

</div>

Have every clip check a pause flag at the root level, and set the flag when you hit the pause button.\r\r

```auto
 \r\ronClipEvent(enterFrame) {\r\r if(_root.pauseFlag==true) {\r\r this.stop();\r\r }\r\r}\r\r

```

\r\rHOHO, talk about murder on CPU time. :evil:
