How can I make this work with a centeral regestration

how can I make this script work from the center of the movie clip not the top left? Basicly its a slider but it is giving me some greif because A) i need it to start in the middle and B) its chopping part of the movie clip off when the stage is resized(another movie loads the scroller in and that movie is a fluid style layout) so I think just centering it would work as needed and I dont have much time my assignment due in 1.5 days and I need to reg his working nicely.

any ideas?

var tl:MovieClip=this;

 

paramF(mc,0,0,stage.stageWidth,stage.stageWidth-mc.width);

 

tl.addEventListener(Event.ENTER_FRAME,scrollF);

 

function scrollF(e:Event){

mc.x=mc.m*tl.mouseX+mc.b;

}

 

function paramF(mc:MovieClip,x1:Number,y1:Number,x2:Number,y2:Number){

mc.m=(y1-y2)/(x1-x2);

mc.b=y1-mc.m*x1;

}