I have three buttons all in a movie clip called ‘container’.
I am loading variable into container from a text file and doing a test to see which button is the correct one. At the moment that is all working fine, when the correct button is pressed I output “yes” using the trace command.
I want to however jump to another movie entirely called ‘Succ’ when the correct button is pressed and jump to a movie called ‘Fail’ otherwise.
Each button has the following code attached to it
on (press) {
if (this.p1) {
trace(“yes”);
gotoAndPlay(“Scene 1”, “Succ”);
} else {
trace(“no”);
}
}
I have created a layer called ‘Movies’ at the Scene 1 level and on the sixth frame I have inserted a keyframe and called the frame ‘Succ’. I have my successfull movie here, which is what I am trying to jump to when my correct button is clicked.
You know… I hate scenes… I know I relented on that a while ago… but for the life of me I can never seem to remember how to get them to work. Glad the _root worked for you. In that case, _parent would work too.