A conditional for mouseMove?

I modified a mouseDown event to use

mouseListener.onMouseMove = function() {
moveGlow();
};

But the glow animation restarts everytime the mouse moves.

Can someone point me towards a tutorial or a tip on using a conditional to detect the mouseMove so it doesn’t start over?