# How to freeze entire animation

**URL:** https://forum.kirupa.com/t/how-to-freeze-entire-animation/2873
**Category:** flash
**Created:** [March 18, 2002, 5:23pm UTC](https://forum.kirupa.com/t/how-to-freeze-entire-animation/2873 "2002-03-18T17:23:47Z")
**Posts on this page:** 12
**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: [March 18, 2002, 5:23pm UTC](https://forum.kirupa.com/t/how-to-freeze-entire-animation/2873/1 "2002-03-18T17:23:47Z")

</div>

I would like to stop all movieclips at once (and all nested movieclips of course) but I have no idea, how to do it. Do I need to stop each movieclip separately ? \r\rthanx

---

<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: [March 18, 2002, 5:34pm UTC](https://forum.kirupa.com/t/how-to-freeze-entire-animation/2873/2 "2002-03-18T17:34:29Z")

</div>

well, you could put a boolean condition from the root in every movieclip and then just set the bool to false…for example:\r\ronClipEvent(enterFrame) {\rif (\_root.go) { // if you set \_root.go to false, the following code wouldn’t run.\r//do everything in here\r}\r}\r\ryou could do the same with frame actions, or better yet, not play them at all.

---

<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: [March 18, 2002, 6:02pm UTC](https://forum.kirupa.com/t/how-to-freeze-entire-animation/2873/3 "2002-03-18T18:02:33Z")

</div>

hmm… how about movies which are loaded with LoadMovie??\r\rlp,\rDarkolord

---

<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: [March 18, 2002, 7:45pm UTC](https://forum.kirupa.com/t/how-to-freeze-entire-animation/2873/4 "2002-03-18T19:45:07Z")

</div>

Good question, will \_root by \_root, or level0?\rRemeber this one (check out the best of kirupa forum… 🙂 )

---

<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: [March 18, 2002, 8:00pm UTC](https://forum.kirupa.com/t/how-to-freeze-entire-animation/2873/5 "2002-03-18T20:00:22Z")

</div>

If I understood Sinfiniti’s very god explanation, you’d have to put \_level0. 😃 \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: [March 18, 2002, 8:10pm UTC](https://forum.kirupa.com/t/how-to-freeze-entire-animation/2873/6 "2002-03-18T20:10:50Z")

</div>

I found that amazing function on a link I got from the Virtual FX board, where this guy Ted has a great \<a href=http://www.phoenix-blaze.com/\>website\</a\> :

```auto
  function stopclips (Clip) {\r\r for (name in Clip) {\r\r if (typeof (Clip[name]) == "movieclip" ) {\r\r if ((eval(Clip) != Clip[name])) {\r\r Clip[name].stop();\r\r stopclips(Clip[name]);\r\r }\r\r }\r\r }\r\r}

```

Just put a button with the code

```auto
  on (release) {\r\r stopclips(_root);\r\r}

```

to stop all the clips in \_root.\r\rAin’t that wonderful ??\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: [March 18, 2002, 10:01pm UTC](https://forum.kirupa.com/t/how-to-freeze-entire-animation/2873/7 "2002-03-18T22:01:16Z")

</div>

Thor, I meant to ask, what do those symbols mean in your sig?

---

<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: [March 19, 2002, 1:17am UTC](https://forum.kirupa.com/t/how-to-freeze-entire-animation/2873/8 "2002-03-19T01:17:22Z")

</div>

if you loaded movies into levels you would have to specify each level. if you loaded into targets then the above function should work just fine.\r:) \rjeremy

---

<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: [March 19, 2002, 12:33pm UTC](https://forum.kirupa.com/t/how-to-freeze-entire-animation/2873/9 "2002-03-19T12:33:53Z")

</div>

thanx ilyaslamasse, that was exactly what I was searching for…

---

<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: [March 20, 2002, 6:56am UTC](https://forum.kirupa.com/t/how-to-freeze-entire-animation/2873/10 "2002-03-20T06:56:23Z")

</div>

You know… there is another more simple way of doing that… I wonder if supra will tell us. I know I’ve read about the with(); method and it sounds like this is a job that this function could handle. Anyone know what I’m talking about? 🙂

---

<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: [March 20, 2002, 8:53am UTC](https://forum.kirupa.com/t/how-to-freeze-entire-animation/2873/11 "2002-03-20T08:53:02Z")

</div>

I was told that with and tellTarget were basically the same function…\rI’d have to check, but I’m at school right now.\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: [March 20, 2002, 2:00pm UTC](https://forum.kirupa.com/t/how-to-freeze-entire-animation/2873/12 "2002-03-20T14:00:14Z")

</div>

with(); is supposed to do something to everything that is inside of whatever the with(); is calling to.\r\rVery rarely are two things exactly the same. 🙂 \r\rNow I’m still not sure if that can do what we’re talking about… it maybe that all the objects have to be of the same origional, but if they only had to be a prototype, then you could call to the movie clip prototype and have that effect all of thost instances inside another movie clip, or possibly inside the timeline.
