Convert vertical scroller to horizontal scroller

Hi have a cool vertical scroller that I did try to convert to horizontal, but I could not make it work.
Can someone help ??
Below is the code for vertical scroller:
Thanks to anyone who can help.

//code by Billy T

//set a variable
targY=0;
//set the x position of the dragger
dragger._x = 370;
line._x = 370;
//set the drag action of the dragger
//drag is restricted to the height of the mask
dragger.onPress=function(){
startDrag(this,false,this._x,0,this._x,theMask._height-this._height);
}
//stop the drag
dragger.onRelease=dragger.onReleaseOutside=function(){
stopDrag();
}
//set the mask for the text
theText.setMask(theMask);
//the scrolling animation
theText.onEnterFrame=function(){
/*set a variable
this variable basically stores info regarding what fraction of the total text
is being displayed through the mask and ensures that dragging the dragger
from top to bottom will reveal all the text.
this allows you to change the amount of text and the scroller will update itself
/
scrollAmount=(this._height-(theMask._height/1.3))/(theMask._height-dragger._height);
//set a new target y position
targY=-dragger._y
scrollAmount;
//set the y of the text to 1/5 of the distance between its current y and the target y

//change the 5 to a lower number for faster scrolling or a higher number for slower scrolling
this._y-=(this._y-targY)/5;

}