Previous / next button stumper

Hi,

I have a website with a horizontal sliding gallery. There are buttons (numbers at the bottom) that when clicked slide a very long mc with thumbs on it to a specific xtarget position. That all works fine and dandy, but I want to get rid of the number buttons and put previous / next buttons instead. The thing that stumps me is this. Regular previous / next buttons would be coded to go to the next frame. I want to go to the next xtarget position instead. I think it would need to be a variable, but hey what do I know. I’m using CS3 / AS2.

The link is: http://www.brianlabriedesigns.com. Click the illustration button and you’ll see what I’m talking about. my button code is below.

Thank you very much for your help.

but1.onRollOver = function(){
this.gotoAndPlay(“over”);
}
but1.onRollOut = function(){
this.gotoAndPlay(“out”);
}
but1.onRelease=function(){
xTargetMC = 1030;
xTargetcontentMC = 970;
}

but2.onRollOver = function(){
this.gotoAndPlay(“over”);
}
but2.onRollOut = function(){
this.gotoAndPlay(“out”);
}
but2.onRelease=function(){
xTargetMC = 190;
xTargetcontentMC = -290;
}

but3.onRollOver = function(){
this.gotoAndPlay(“over”);
}
but3.onRollOut = function(){
this.gotoAndPlay(“out”);
}
but3.onRelease=function(){
xTargetMC = -1430;
xTargetcontentMC = -1565;
}

but4.onRollOver = function(){
this.gotoAndPlay(“over”);
}
but4.onRollOut = function(){
this.gotoAndPlay(“out”);
}
but4.onRelease=function(){
xTargetMC = -1430;
xTargetcontentMC = -2905;
}

but5.onRollOver = function(){
this.gotoAndPlay(“over”);
}
but5.onRollOut = function(){
this.gotoAndPlay(“out”);
}
but5.onRelease=function(){
xTargetMC = -1430;
xTargetcontentMC = -4220;
}

but6.onRollOver = function(){
this.gotoAndPlay(“over”);
}
but6.onRollOut = function(){
this.gotoAndPlay(“out”);
}
but6.onRelease=function(){
xTargetMC = -1430;
xTargetcontentMC = -5590;
}