Control timeline with mouse position

Hi, does anyone know how to control an mc’s timeline with the mouse position? So, when you click and drag right it plays the timeline forward and vice versa? I know how to do it with a slider, but I’m stuck on replacing the slider position with the coordinate where you click your mouse…if that makes any sense…

Thanks for any help,

VDG