Load/Unload *.swf movies question

Hi,

I’m wondering if there isn’t a better and easier way to do this…

I have a scene with 9 buttons opening each a *.swf movie
example: on Home I attach the action:
on (release) {
gotoAndStop (2);
}
// other buttons goto and stop frame 3,4,5,6…

on Frame 2 there is a blank keyframe with the action:

stop ();
loadMovieNum (“home.swf”, 2);
unloadMovieNum (1);
unloadMovieNum (3);
unloadMovieNum (4);
unloadMovieNum (5);
unloadMovieNum (6);
unloadMovieNum (7);
unloadMovieNum (8);
unloadMovieNum (9);
unloadMovieNum (10);
unloadMovieNum (11);

on frame 3,4,5,6… there is the same action, only loading it’s specific movie and unloading the movie that was allready open.
I do this because a visitor can click randomly on a button without having the problem of movies overlapping eachother.

A reasonable action would be:
stop ();
loadMovieNum (“home.swf”, 2);
unloadMovieNum (1,2,3,4,5,6,7,8,9);

or

stop ();
loadMovieNum (“home.swf”, 2);
stopallmovies ();

second question:
what about a *swf movie(1.3) loaded into a *swf movie(1.2) witch is loaded into a *swf movie(1.1)?
can I unload movie 1.3 seperatly?

thanx in advance

I dont know what you mean wth the 1.2 stuff … but what about just loading all your swfs into the same level. That would replace the existing swf with the new and you wouldnt have to worry about unloading every other level that you used

O.K. that works , but I have read somewhere that it is important to unload the movies as well…

http://www.jessy-music.be