Movie control with mouse

mm im trying to make something and im getting brain farts… Im trying to control an image sequence with the mouse position… so say if the mouse was at 0,0 then the img sequence would be at frame one… if it was at the Stage.width then it would be at the last frame.