I have a forking interactive movie where the user has to choose between several different buttons. On one layer I have several instances of a movieclip with unique instance names - mc_1, mc_2, mc_3, etc. I have this code on one of the mc’s:
onClipEvent (mouseUp) {
_root.gotoAndPlay(“right”);
}
on the other instances of the movieclip I have the following:
onClipEvent (mouseUp) {
_root.gotoAndPlay(“wrong”);
}
So one correct choice should take the user to the section labeled “right” in the main timeline while any other choice should take them to the section labeled “wrong”.
The problem is this: when I code the mc’s this way whichever code I put on the first instance becomes functional on all of them regardless of my coding the others. So if I set mc_1 as the correct choice, clicking on ANY of them comes back correct.
Why would this be happening? I’ve tried putting instances on individual layers and it doesn’t seem to matter. Please check out the .fla and let me know what I’m doing wrong here. It works if I use buttons and button code, but I’d prefer to use movieclips for flexibility in case I need to refer to them some other way.