I have a movie clip on the stage. Within this movieclip, I have (among other things) a button, which when clicked navigates the user to frame 10 on the root timeline using this code:
On frame 10, I have for testing purposes...
It works fine the first time I click the button - it outputs "getting here". However, subsequent clicks don't output anything. I'd like Flash to run the code on that frame each time the button is clicked.
I tried using gotoAndPlay instead of gotoAndStop, and it plays the code every second click.
Ideally, I want Flash to goto that frame, execute the code, and stop on that frame. If the button is clicked again, repeat.
How do I make that happen?
Thanks for your help guys.
insert an empty frame at the parent's frame 9 (if the frame's not empty now) and place a stop() on frame 10 (along with your code). then use:
Thanks for that workaround kglad - fixed it up nicely.
Any reason why Flash needs the extra frame in order to do what I want?
that's the way flash works.
gotoAndStop() won't cause the playhead to exit and reenter a frame it's already in.