Reset MC

Can someone please show me an example of reseting a movie clip and then having it repeat the actionscript again continously? I’m using AS2.:expressionless:

What do you mean by reseting the movieclip?

What i’m doing is i have a mc and it falls from the top of the screen to the bottom. What I want to do is have it, once reaching the bottom, reset and fall back down from the top, having this repeat over and over.

Can you upload your fla? It should be easy to achieve, but I’m not sure how you have your code written.

Okay here it is:

Change your code to:


onClipEvent (enterFrame) {
	this._y += 20;
	if (this._y>=400) {
		this._y = 0-this._height;
	}
}

Thanks a lot. :ne:

No problem :slight_smile: