# Movie clips

**URL:** <https://forum.kirupa.com/t/movie-clips/7468>\
**Category:** Uncategorized\
**Created:** [October 31, 2002, 7:12pm UTC](https://forum.kirupa.com/t/movie-clips/7468 "2002-10-31T19:12:36Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![SureShot](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sureshot/32/83_2.png) [@SureShot](https://forum.kirupa.com/u/SureShot)\
**Post date:** [October 31, 2002, 7:12pm UTC](https://forum.kirupa.com/t/movie-clips/7468/1 "2002-10-31T19:12:36Z")

</div>

Ok here is my set up:

I have a main movie - in it, I have about 25 buttons that all load movie clips with sounds. It’s like a sound board of sorts.

My problem:

I know how to load movie clips and unload them using those exact commands. What I am wondering is - is there a code that can be used on my buttons so that if another movie clip is playing when a different button is pressed all the others will stop and just it will play. You see I would really hate to have to go in and an “unload X movie clip” 25 times for each button to make sure it’s not going to be there.

Do you guys have any idea?

---

<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:** [November 1, 2002, 3:28am UTC](https://forum.kirupa.com/t/movie-clips/7468/2 "2002-11-01T03:28:39Z")

</div>

Anyone? Please help me out 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:** [November 1, 2002, 3:33am UTC](https://forum.kirupa.com/t/movie-clips/7468/3 "2002-11-01T03:33:31Z")

</div>

Hrm… don’t use this too much as I have yet to make a Flash site, or anything that uses it, but…

```auto
yourClip.unloadMovie();

```

That should unload any movie that is loaded onto yourClip.

---

<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:** [November 1, 2002, 2:25pm UTC](https://forum.kirupa.com/t/movie-clips/7468/4 "2002-11-01T14:25:02Z")

</div>

You could store the name of the movie playing when you press on the button, so that you can access it to unload it when you press another button, no?

pom :asian:

---

<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:** [November 2, 2002, 7:08pm UTC](https://forum.kirupa.com/t/movie-clips/7468/5 "2002-11-02T19:08:17Z")

</div>

ilyaslamasse: I am not sure what you mean, or how to do it. If it’s not too much trouble do you think you could explain it to me? Remember, I am a designer - not a programer so I might need some detailed instructions 🙂 I am kind of an idiot when it comes to actions…sorry ☹

---

<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:** [November 2, 2002, 7:17pm UTC](https://forum.kirupa.com/t/movie-clips/7468/6 "2002-11-02T19:17:47Z")

</div>

Hmm, can you explain exactly how you want it to work?

---

<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:** [November 2, 2002, 7:44pm UTC](https://forum.kirupa.com/t/movie-clips/7468/7 "2002-11-02T19:44:15Z")

</div>

Ok 🙂

I have a movie with 25 buttons on it.  
each buttons opens a movie clip with a sound on it.

I want it so that if you click on one button and the sound starts to play and then you press another button the first movie stops and the second one begins.

This way if they are trying to find a sound they are looking for they wont have to wait for one to finish if click on the wrong one.

do you know what I mean?

right now, if they were to click on like 6 different buttons right in a row, there would be 6 different voices going at the same time!

---

<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:** [November 3, 2002, 3:20pm UTC](https://forum.kirupa.com/t/movie-clips/7468/8 "2002-11-03T15:20:34Z")

</div>

ilyaslamasse?

please!!..🙂

---

<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:** [November 3, 2002, 3:24pm UTC](https://forum.kirupa.com/t/movie-clips/7468/9 "2002-11-03T15:24:32Z")

</div>

what’s wrong with using unloadMovie()?

---

<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:** [November 3, 2002, 11:34pm UTC](https://forum.kirupa.com/t/movie-clips/7468/10 "2002-11-03T23:34:46Z")

</div>

because that would mean that for every single button I would have to have 24 statements that read “if clip#? is loaded, unload it”

and I really dont want to have to do all that 🙂 There has to be a way to stop any movies that are already playing…

---

<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:** [November 4, 2002, 6:39am UTC](https://forum.kirupa.com/t/movie-clips/7468/11 "2002-11-04T06:39:25Z")

</div>

What do you mean the button opens a movie clip? It is loaded, attached?

Anyway, if you are loading, a simple solution would be to load in the same clip/level all the time. That way, the new clip erases the previous one.

pom 🙂
