Navigation buttons

ok im not grasping this…lol…how do i make, or code rather, buttons that can be used to go forward or back without having to do the ‘gotoandstop’ for each frame?

ive been researching the best way and all the reading is making me sleepy…lol…

thanks

just select what you want to be the button, convert 2 a button, and then unsing actionscript selct goto next frame and stop, you can then use the same button over and over

here ya go:

on (release) {
	gotoAndStop(nextFrame());
}

alternatively, you could use the _currentframe property like this:

on (release) {
	gotoAndStop(_currentframe+1);
}

hope this helps

yep there it was…i just couldnt for the life of me find that ‘nextframe’ thing…lol…doh…one of those days…thanks for the help…:slight_smile:

or, if you want to go backwards:

on (release) {
	gotoAndStop(prevFrame());
}

or (notice it’s not in another post :stunned: )

on (release) {
	gotoAndStop(_currentframe-1);
}

lots of ways :smiley: