I'm trying to create a photo gallery, which has both the option to start and stop a slide show and/or play the next or previous set of pictures. How can I set the movie clips (I use movie clips instead of buttons) to go to the next set of pictures. Of course I could hand code for each and every frame, but it'd be a hell of a lot easier to place it within a function. Something like:

if(_root.myMovieClip._currentframe==1,2,3,4){
_root.myMovieClip.gotoAndStop(5);
}
if(_root.myMovieClip._currenframe==5,6,7,8,9){
_root.myMovieClip.gotoAndStop(10);
}