Moving images frame-by-frame with mouse movement

oh, i still need help with the speed though :smiley:
Does anyone know how to control the speed? like the faster the mouse moves, the faster the frame goes to the next one, and vise versa ?
Thank you.