Using _xmouse to display a certain frame of a MC

I have a MC of 38 frames. I want a different frame to display depending on the x position of the mouse so that the user will play the MC by moving their mouse.

Any ideas?

:trout: I should be able to do this, but my brain has a huge mental block and maths is the last thing that want to stick in my poor ol’ brain. (Been concentrating too much on 3D hehehe)