Yo all

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

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)

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

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 :slight_smile: :stuck_out_tongue:

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);
}
}

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

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

how do you load a movieclip?:ninja:

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