Button controlled content sliding

Hello all,

I have a movieclip entitled “scrollme” contaning all my “pages” which scroll onto the stage when I press a button.

On my actions layer I have the following code to set up the parameters of the scroll:

// move function
MovieClip.prototype.goto = function(pos, speed) {
this.onEnterFrame = function() {
this._x += (pos-this._x)/speed;
if (Math.abs(pos-this._x)<0.5) {
this._x = pos;
delete this.onEnterFrame;
}
};
};
stop();

Now, lets take the code from one of my buttons:

on (release) {
onRelease = _root.scrollme.goto(0, 7);
}

This works absolutely fine, but I got stuck when I tried to add a _y possition equation, nothing worked. Any ideas how I can combine both _x and _y in the same script, every variation I try just makes it go insane.

Thanks