Flash MX movement

i have a moving man by mouse with the following code


the only problem is say after u put ur mouse over it wen it was facing left and it stopped facing left, and then you put your mouse out to the left again it would move but in that stop position. do you know a solution to make it continue walking after you rollout?[AS]man._x = 0;
speed = 10;
facing = 0;

man.onEnterFrame = function()
{
endX = _root._xmouse;
man._x += (endX-man._x)/speed;

if(this.hitTest(_xmouse,_ymouse,true))
{
	if (facing == 1)
	man.gotoAndStop(41);
	if (facing == 0)
	man.gotoAndStop(1);
}
else if (_root._xmouse < man._x) {
	if (facing == 1) {				
       	man.gotoAndPlay(2);
		facing = 0;
	}
}
else // if (_root._xmouse > man._x) 
{
	if (facing == 0)
	{
       	man.gotoAndPlay(42);
		facing = 1;
	}
}

}
[/AS]