PDA

View Full Version : loading external movies


creo_sol
02-03-2006, 01:42 AM
Hello. I am somewhat new to flash. Please help.

I have a main movie... within this file I have several buttons. Each of these buttons loads an external SWF movie onto the main movie. My problem is that when I click each button the movie loads ontop of the previous movie. How do I code the movies to close when any other movie is qued to open.

The script that is on the 1st button is (S1,S2 being sound):

on (rollOver) {
gotoAndPlay("S1");
}
on (releaseOutside, rollOut) {
gotoAndPlay("S2");
}
on (release) {
loadMovieNum("pageONE.swf",2);
}


Second button would be:

on (rollOver) {
gotoAndPlay("S1");
}
on (releaseOutside, rollOut) {
gotoAndPlay("S2");
}
on (release) {
loadMovieNum("pageTWO.swf",3);
}


.... and so on.

Please help my newbish problem.

Thanks

bearsark86
02-03-2006, 06:15 AM
hi there..im newbie too myself. But one way is to load the .swfs into an empty movieclip. i cant recall the exact coding myself since im in school right now but ill get back to you later if you are still not able to figure it out.