onClipEvent (load) { t = getTimer(); } onClipEvent (enterFrame) { if (this._currentframe == this._totalframes) { gotoAndPlay(1); _x = 10+random(430); _y = 10+random(270); } if (getTimer()-t>30000) { stop(); } }