How to control moving objects using _x property

i have created movieclip it will animated by following code
speed=1;
this._x -= speed;

when its came to x = 67 it will stop for few seconds then it will scroll randomly.

is it possible???

I’d greatly apreciate any help.