Hi, I am not for sure if I am posting in the correct room. I have a flash photo gallery question. I am making a flash webpage using CS4 using a previous and next button. Both the previous and next button work but one problem. It does not stop at the first gallery instead it goes all the way to the end to the very last gallery. Example. One gallery is name food, the next family, and after sports, and etc. The next and previous button goes to the next gallery without stopping.
My question is, is there a way that I can make it stop so that it stop at the very end of each gallery instead of jumpin over to the next?
This is my code that I use.
stop ();
Previousbtn.addEventListener (MouseEvent.CLICK, backward);
Nextbtn.addEventListener (MouseEvent.CLICK, forward);
function forward (event : MouseEvent) {
if (this.currentFrame == this.totalFrames) {
gotoAndStop (1);
}
else {
nextFrame();
}
}
function backward(event : MouseEvent) {
if (this.currentFrame == 1) {
gotoAndStop (this.totalFrames);
}
else {
prevFrame();
}
}