Horizontal scroll Bar

Hi All

New to the forum and new to flash!, I have been copying the scroll bar tutorial and am noew trying to modify it to use with images horizontally, i have the scroll face moving left and right however it goes to fat left of the scroll track and not far right enough, also the contect does not move whilst scrolling, was hoping some could help me figure out what i need to change in ActionScript

hope i’m posting in the right place and some one can help

thanks

var scrollWidth:Number = scrollTrack._width;
var contentWidth:Number = contentMain._width;
var scrollFaceWidth:Number = scrollFace._width;
var maskWidth:Number = maskedView._width;
var initPosition:Number = scrollTrack._y=scrollFace._y;
var initContentPos:Number = contentMain._y;
var finalContentPos:Number = maskWidth-contentWidth+initContentPos;
var left:Number = scrollTrack._y;
var top:Number = scrollTrack._y;
var bottom:Number = scrollTrack._y;
var right:Number = scrollTrack._width+scrollFacewidth-scrollTrack._y;
var dy:Number = 0;
var speed:Number = 10;
var moveVal:Number = (contentWidth-maskWidth)/(scrollWidth-scrollFaceWidth);

scrollFace.onPress = function() {

var currPos:Number = this._y;
startDrag(this, false, right, top, left, bottom);
this.onMouseMove = function() {

dy = Math.abs(initPosition-this._y);
contentMain._y = Math.round(dy*-1*moveVal+initContentPos);

};

};

scrollFace.onMouseUp = function() {

stopDrag();
delete this.onMouseMove;

};
btnLeft.onPress = function() {

this.onEnterFrame = function() {

if (contentMain._y+speed<maskedView._y) {

if (scrollFace._y<=right) {

scrollFace._y = right;
contentMain._y += speed;

} else {

contentMain._y += speed;
scrollFace._y -= speed/moveVal;

}

} else {

scrollFace._y = right;
contentMain._y = maskedView._y;
delete this.onEnterFrame;

}

};

};