do you have that label on a single frame? If the label is shared by more than one frame, sometimes the time line will jump to the closest frame with that label when going backwards.
where's the first this.stop() on/after Slide02?
@mhunter I do have the label on a single frame, yes.
@kglad I have a this.stop() on every single frame in the timeline. It's one slide per frame and there are about 32 slides each accompanied with audio.
then what you're seeing is expected.
you're going to stop on Slide02. and then a gotoAndPlay will exit Slide02 and get stopped on the next frame before it gets to Slide02 again.
ie, your gotoAndPlay is executing and then the this.stop() is executing in the Slide02 plus 1 frame.
to remedy, use this.gotoAndStop('Slide02') to not exit when re-executed. but if you actually want to exit and then re-enter that frame when you could use:
though whatever reason you have for wanting to do that is probably better handled by other code.
Try removing the listener when you leave the frame that the button is on:
Otherwise there may be two listeners that get triggered the second time you get to that screen.
YAY!!! Thank you so much! That seems to have done the trick. I've been pulling my hair out trying to figure that out. Much obliged.
I always thought you needed to have the function match what is executed. Lesson learned.