Mouse x position to control movie position?

Hi, my understanding of actionscript is very basic and I’d like some help with writing a very simple script. Basically the x position of the mouse should control the play position of a movie. Do I need something like an event handler (I’m not sure exactly what these do, but I’ve seen similar scripts that seem to use them).