Dynamic Movement help

I have a movie clip that is moving dynamically with this code.


onClipEvent(enterFrame) {
	speed = -5;
	this._x += speed;
}

What I need is to find out how to stop this movement at a _x postiiton.

any help will be appreciated.