This code is in a movieclip. There is 6 buttons outside using the same script and it works fine, but not when I have a submenu in a movieclip and use the code… figured it would work as it uses "_root. " but it dont … anyone knows what may be wrong ?
this.btnLunchSushi.onRelease = lunchSushiRelease;
this.btnlunchVarm.onRelease = lunchVarm;
function lunchSushiRelease() {
if (_root.section != "lunchSushi.swf") {
_root.section = "lunchSushi.swf";
_root.transition.gotoAndPlay("closing");
}
}
}
function lunchVarm() {
if (_root.section != "lunchVarm.swf") {
_root.section = "lunchVarm.swf";
_root.transition.gotoAndPlay("closing");
}
}
}