# Stopping many movie clips

**URL:** <https://forum.kirupa.com/t/stopping-many-movie-clips/29526>\
**Category:** Uncategorized\
**Created:** [August 27, 2003, 8:28pm UTC](https://forum.kirupa.com/t/stopping-many-movie-clips/29526 "2003-08-27T20:28:59Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![flash\_legend](https://avatars.discourse-cdn.com/v4/letter/f/2acd7d/32.png) [@flash\_legend](https://forum.kirupa.com/u/flash_legend)\
**Post date:** [August 27, 2003, 8:28pm UTC](https://forum.kirupa.com/t/stopping-many-movie-clips/29526/1 "2003-08-27T20:28:59Z")

</div>

good day members  
small help i need  
first of all i use FLASH 5

i have for exmaple 5 movie clips on the main stage

Now i want to stop all the movies in on code  
[SIZE=5]is that possible guys???[/SIZE]

thanks guys

---

<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:** [August 27, 2003, 8:32pm UTC](https://forum.kirupa.com/t/stopping-many-movie-clips/29526/2 "2003-08-27T20:32:57Z")

</div>

Sure, say your mc’s have the instance names mc1, mc2, mc3, mc4, mc5, and they’re on the main timeline, then use:

[AS]for(i=0;i\<=5;i++){  
\_root[“mc”+i].gotoAndStop(3);  
}[/AS]

Where 3 is the frame to stop at.

---

<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:** [August 27, 2003, 8:39pm UTC](https://forum.kirupa.com/t/stopping-many-movie-clips/29526/3 "2003-08-27T20:39:57Z")

</div>

waweeeeeeeeeeee  
what a quick answer thanks for you pal

now if i want to use a button,the code will be like this

on (release){  
for(i=0;i\<=5;i++){  
\_root[“mc”+i].gotoAndStop(3);  
}  
}

---

<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:** [August 27, 2003, 8:47pm UTC](https://forum.kirupa.com/t/stopping-many-movie-clips/29526/4 "2003-08-27T20:47:15Z")

</div>

If they are on the main timeline, yep 🙂

---

<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:** [August 28, 2003, 10:09am UTC](https://forum.kirupa.com/t/stopping-many-movie-clips/29526/5 "2003-08-28T10:09:33Z")

</div>

If they are on the main timeline, yep

============================

what about if this button is inside a movie clip  
the code in this matter will be deffernet?  
:q: :-\

---

<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:** [August 28, 2003, 10:24am UTC](https://forum.kirupa.com/t/stopping-many-movie-clips/29526/6 "2003-08-28T10:24:05Z")

</div>

No, it will still target the same movieclips on the main timeline.

\*Oh I just realized this is Flash 5 ! I’m not sure if it will work for Flash 5, I’m an MX guy. If it doesn’t, sorry.

\*Just checked ([http://www.macromedia.com/support/flash/action\_scripts/actionscript\_dictionary/actionscript\_dictionary026.html](http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary026.html)), it should work in F5

---

<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:** [August 28, 2003, 10:36am UTC](https://forum.kirupa.com/t/stopping-many-movie-clips/29526/7 "2003-08-28T10:36:21Z")

</div>

no problem pal at least you tried to help

and i am thanking you for that

the link you just added , i will see it

thanks alot

---

<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:** [August 28, 2003, 11:07am UTC](https://forum.kirupa.com/t/stopping-many-movie-clips/29526/8 "2003-08-28T11:07:36Z")

</div>

The link was just to make sure that it also worked in Flash 5. But you can view it too, you can learn a lot from it 🙂 So did it work out for you ?

---

<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:** [August 28, 2003, 11:10am UTC](https://forum.kirupa.com/t/stopping-many-movie-clips/29526/9 "2003-08-28T11:10:03Z")

</div>

still am trying  
in case i found what i want  
i really will add the code…is that ok for you

---

<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:** [August 28, 2003, 11:22am UTC](https://forum.kirupa.com/t/stopping-many-movie-clips/29526/10 "2003-08-28T11:22:29Z")

</div>

Can I see the FLA so I can solve it for you ?
