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