Continual movement

I want to have something on the screen move at a constant speed when a button is pressed. I’m not sure how to go about it. I have this for it to move 5 pixels at a time but I want it to move continually on holding the mouse down.

on (release) {
_root.bar.ball._x += 5;
}