Stoping a movieclip

How would I write actionscript for a movieclip ie box1 to go from left to right and stop at
position say 200 on the stage so far I have

box1.onEnterFrame = function() {
this._x++;
};

Thank You

box1.onEnterFrame = function() {
this._x++;
if(this._x+1>200) delete this.onEnterFrame
};

:slight_smile:

Thank you Voetsjoeba, did it take you long to learn Flash?

Hmm … what do you consider long ? I registered here at 03-22-2003, back then I was still a complete noob. Should give you an idea.