Multi direction slide bars

Hi
Hope you dont mind as I thought I would try this thread again as I am right stuck on this one -

I am trying to create a slider that can slider on both the x and the y axis.
For example a user may slider a square along a fixed y axis and then be able to slide along an y axis at certain points and so on. It would work a bit like a gear stick on a car.

Any ideas where to start with this.

This is the code I am using for a single axis bar

init_pos=slider_mc._x;
slider_mc.onPress=function()
{
this.startDrag(false,init_pos,this._y,init_pos+260,this._y);
}
slider_mc.onRelease=function()
{
this.stopDrag();
}

cheers