[SIZE=“2”][FONT=“Verdana”]I have a script that I found on here posted by Salvador Marley.
It is supposed to load these sub-menus (which are movieclips in the library, MC01, MC02, etc…) into an empty movieclip when certain links are clicked from the main menu.
The code works for loading the movieclip from the library, and even switches the movieclip when I choose the next link all like it’s supposed to do.
However my problem is that it will play the sub-menu movieclip, but it will not stop at the end. It constantly loops. I have tried to put the stop command in several places throughout my entire .fla but it doesn’t stop. The sub-menu’s transitions just keep repeating over and over again. How do I get it to only play the sub-menu movieclip once and then stop?[/FONT][/SIZE]
on (release) {
if (_global.currMovie == undefined) {
_global.currMovie = "MC02";
_root.menu.attachMovie("MC02", "MC", 1);
} else if (_global.currMovie != "MC02") {
_global.currMovie = "MC02";
_root.menu.MC.play();
}
}