Constrain x movement

You can’t declare multiple onClipEvent (enterFrame) event handlers without overwriting them.

I’m not sure I understand what you’re trying to do. If you want to be able to drag your clip up to the position of another clip, you could do it like that:

onClipEvent (enterFrame) {
	this._y = _root._ymouse ;
	this._x = Math.min (_root._xmouse, _root.site.box._x) ;
}

Is that what you’re trying to do?