# Yo all

**URL:** <https://forum.kirupa.com/t/yo-all/9321>\
**Category:** Uncategorized\
**Created:** [December 9, 2002, 8:23pm UTC](https://forum.kirupa.com/t/yo-all/9321 "2002-12-09T20:23:11Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![pithcell](https://avatars.discourse-cdn.com/v4/letter/p/3d9bf3/32.png) [@pithcell](https://forum.kirupa.com/u/pithcell)\
**Post date:** [December 9, 2002, 8:23pm UTC](https://forum.kirupa.com/t/yo-all/9321/1 "2002-12-09T20:23:11Z")

</div>

so i got me another problem,  
i have created a drop down menu system where i have created a amovie clip and then used some AS to loop that the contents within the movie clip to keep the menu bar up when i roll over the main button and then disappear when i roll off the main button. Now in this sub menu, i have a button  
I want that button to:

1. Load a movie to level 1
2. unload a movie clip from the root movie.  
so right now i have as AS:

on (release) {  
loadMovieNum(“stoop.swf”, 1);  
}  
on (release) {  
unloadMovie(“introMovie”);  
}

the first part WORKS just fine, the second part DOES NOT!!! why doesn’t it??

a hearty thanks to all those who can help

---

<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:** [December 9, 2002, 9:01pm UTC](https://forum.kirupa.com/t/yo-all/9321/2 "2002-12-09T21:01:58Z")

</div>

Well first of all you do not need 2 handlers just make it

on (release) {  
loadmovie();  
unLoadMovie();  
}

Secondly are you sure that introMovie is on the main timeline? (in \_root)

---

<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:** [December 9, 2002, 9:07pm UTC](https://forum.kirupa.com/t/yo-all/9321/3 "2002-12-09T21:07:31Z")

</div>

hey Syko,  
i got it working.  
thanks for the advice bout the handlers though  
yeah introMovie is on the main timeline, and for some reason the way i was doing it, it wasnt working, but now i am using this:

on (release) {  
\_root.introMovie.unloadMovie();  
loadMovieNum(“stoop.swf”, 1);  
}

thanks for the advice

---

<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:** [December 9, 2002, 9:15pm UTC](https://forum.kirupa.com/t/yo-all/9321/4 "2002-12-09T21:15:30Z")

</div>

I take it that that works?

Just a suggestion, I always use \_root.something when dealing with movie clips (MCs). It’s a good habit to get into 🙂 😛

---

<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:** [December 9, 2002, 9:24pm UTC](https://forum.kirupa.com/t/yo-all/9321/5 "2002-12-09T21:24:38Z")

</div>

yeah it totally works,  
but now i have another prob  
i have a button that would bring up the introMovie again, but it doesn’t seem to be working,  
the button is on the main movie (root)

so i tried

on (release) {  
\_root.introMovie.loadMovie();  
}

that didnt work so i tried

on (release) {  
tellTarget (“introMovie”) {  
gotoAndPlay(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:** [December 9, 2002, 10:13pm UTC](https://forum.kirupa.com/t/yo-all/9321/6 "2002-12-09T22:13:06Z")

</div>

you have to use \_root.introMovie.loadMovie( **“yourswf.swf”** );  
You have to define the .swf file that you want to load!

---

<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:** [December 10, 2002, 5:20pm UTC](https://forum.kirupa.com/t/yo-all/9321/7 "2002-12-10T17:20:01Z")

</div>

sorry i didn’t clarify syko, i am not trying to load a MOVIE, but rather a MOVIE CLIP on the main timeline, thats why i didnt use the .swf extension

P

---

<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:** [December 10, 2002, 6:01pm UTC](https://forum.kirupa.com/t/yo-all/9321/8 "2002-12-10T18:01:52Z")

</div>

how do you load a movieclip?:ninja:

---

<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:** [December 10, 2002, 6:18pm UTC](https://forum.kirupa.com/t/yo-all/9321/9 "2002-12-10T18:18:18Z")

</div>

sort of,  
here is the problem  
i have two buttons on the main timeline  
lets say you click button 1:

1. it loads a MOVIE to level 1
2. it unloads a MOVIE CLIP on the main timeline

after this has happened, I click button 2:  
i want the MOVIE CLIP that was unloaded by button 1 to reappear on he root movie.  
therefore the script i have been using right now

Button 1:  
on (release) {  
\_root.introMovie.unloadMovie();  
loadMovieNum(“stoop.swf”, 1);  
}

Button 2:

on (release) {  
\_root.introMovie.loadMovie();  
}

that didnt work so i tried

on (release) {  
tellTarget (“introMovie”) {  
gotoAndPlay(1);  
}  
}  
NEITHER OF THESE WORKED!!!  
thanks for your persistence, much appreciated  
P
