Monitoring mouse movement to invoke a tween or not

I want to have a movieclip have its alpha tween in, when I move the mouse, and fade out when I stop it. Alas - with either an onEnterFrame or onMouseMove if the mouse is moving - it keeps repeating the tween function - how do I make it fire the tween function only once…? here’s what Ive done - but its too unreliable …

var mousex:Number;var mousey:Number;
var moving:Boolean = false;
onEnterFrame = function()
{
	if(mousex == _xmouse && mousey == _ymouse) // the mouse isnt moving
	{
		if(moving == true) // was previous frame mouse moving?
	        {
		     bo.alphaTo(0,5);
	        }
	        moving = false;
	}
	else
	{
		moving = true; // the mouse is moving
		bo.alphaTo(100,2);
	}
	mousex = _xmouse; // store current mouse pos
	mousey = _ymouse;
}

any tips out there!?