I have a very simple flash site set up in as2. The buttons
are done using instance names in the actions layer. However, I am
finding that if you press them a second time, they'll jump to the
next main frame (which isn't the frame they are set to go to). Any
ideas on why they are doing that? Do I need more stop actions or
something? (I am not that great at actionscript but am trying to do
this properly, without putting the code on the buttons).
I have attached my button code. Each main keyframe has a stop
action in it.
You probably need to use gotoAndStop() rather than
gotoAndPlay(). If you are at the frame you are telling it to go to
and play, then whatever stop() might be there is already played
out, so it has no choice but to play on to the next frame.