I have a MC with the instance name “box” on my stage. Inside this movie clip I have a button with the instance name “button”.
This is the code I have on the button:
on (release) {
_parent.box.gotoAndPlay("blah");
}
On the main timeline, my MC (box) ends on frame 135. On frame 135, on an Actions Layer, I have a stop command. On frame 136, I have named it “blah” (minus quotes). When I click On the button, I just want it to go back to the main timeline and play frame 136 (named “blah”). I have looked on the searches, and applied almost every combination. I have looked in the manual and still cant find anything that works!
Man, this is the second file today to fail to open (but the first one was an unexpected file format). At first I thought it was me, but then someone else says the same thing… so I have no clue.
Danno, I looked at your file and I’m a bit confused as to why you have 2 of the same buttons. Inside your “box” MC, you have a button called “button1” which is the “go to store” button and on your main timeline, you have another “go to store” button. You also placed a stop action on the first frame of your box MC so it never plays its timeline so I don’t see the purpose of the second “go to store” button inside “box” MC. If you place this action on the “go to store” button on the main timeline then it should work.
on (release){
gotoandPlay("blah");
}
If there wasn’t a stop action in “box” MC then it would allow the second “go to store” button to appear and if you have an action like this:
on (release){
_root.gotoandPlay("blah");
}
That would work, but since the button inside “box” MC never appears because of the stop action, that was probably the reason why you weren’t able to test it. Hope that helps. =)