PDA

View Full Version : gotoAndStop


Deuxieme2000
06-29-2001, 02:34 PM
Ok (my english is not perfect but ...)
I have a movie clip with 1 scene. This one is called "z". I have a simple animation (a square moves "during" 20 frames, just for my test). In this scene, I have a moving clip with a boutton. My goal is: when I push on the button, the scene "z" stops and go to frame 8. I use a "gotoAndStop ("z", 8)" included in "on (press) {}". But it does not work ... what is wrong?
Thanks a lot for your help!

matt poole
06-29-2001, 03:45 PM
put your button on the main stage and attach:

on (press) {
_root.z.gotoAndStop (8);
}

make sure you name the movie clip in the instances box as well as the library.