Removing onEnterFrame's

Hey, I’m having problems deleting code in an onEnterFrame block on a movieclip. Here’s an example:

onClipEvent(load) {
this.tX = this._x;
this._x += 360;
}
onClipEvent(enterFrame) {
if (this._x != this.tX) {
this._x -= 5;
} else {
delete this.onEnterFrame;
}
}

I’ve got this working in Flash MX 2004 Professional before but now I’m on a machine that only has Flash MX. Does anyone know how I can get this line, third from the bottom to work?

Many thanks,
Dave