Can you make this code better?

Hi all,

I created an Infinite menu item and after reading through the forums I applied a few tweaks to get the follow behaviors:

a) only rolls when the mouse is over the MC
b) has a deadzone of about 200 pixels in the center for easy clicking

One problem i am having is that it will stop scrolling if I leave the swf above or below it, however sometimes it continues scrolling if I leave by the left or right edge.

I am also curious if this could be simplified.

onClipEvent (load) { 
    xcenterhigh = 442; 
    xcenterlow = 250; 
    speed = 1/20; 
} 


onClipEvent (enterFrame) { 
    if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
	
	if (_root._xmouse>xcenterhigh) { 
        var distance = _root._xmouse-xcenterhigh; 
        
    } else if (_root._xmouse<xcenterlow) { 
        var distance = _root._xmouse-xcenterlow; 
		
    } else if (_root._xmouse>xcenterlow) { 
        if (_root._xmouse<xcenterhigh) { 
        var distance = 0; 
    } 
    } 


	_x += (distance*speed); 
        if (_x>0) { 
            _x = -692; 
        } 
        if (_x<-692) { 
            _x = 0; 
        } 
} }

Thanks,

Eric