This is a quirk of the gotoAndPlay function
Essentially, it does what it says - goes to and plays from the frame you pass. If you put a stop action in that frame, then it doesn't play, BUT, if you are already on that frame, it ignores the code and actually goes to the next frame (or loops if you are at the end)
What you will want to do is a gotoAndStop, rather than a gotoAndPlay.
I actually just started trying random things and I put an additional stop action in with the gotoandplay action, and it worked. Your way makes MUCH more sense though.
glad to help.
Would you know of a good tutorial that would show me how to make a piece of art slide into a page upon clicking a button?
I'm thinking I would have to make a movie symbol of the artwork that I wanted to slide and then add code that tells the movie symbol when to start, but I have no idea how to do it.
If you know of any tutorials, let me know.