Mario Koopa stationary problem

In a mario game I am programming, I cant get the koopa to stop moving after mario jumps on him. My code for his movement is below:


onClipEvent (enterFrame) {
if (this._xscale == 100) {
this._x -= 1;
}
if (this._xscale == -100) {
this._x += 1;
}
}