How to stop falling Snow

Does anyone know how to stop a running function? I was using the below the scripts to create snow scene, it works but i dun now how to stop it.

init = function () {
width = 630;
// pixels
height = 391;
// pixels
max_snowsize = 10;
// pixels
snowflakes = 50;
// quantity
for (i=0; i<snowflakes; i++) {
t = attachMovie(“snow”, “snow”+i, i);
t._alpha = 20+Math.random()60;
t._x = -(width/2)+Math.random()
(1.5width);
t._y = -(height/2)+Math.random()
(1.5height);
t._xscale = t._yscale=50+Math.random()
(max_snowsize10);
t.k = 1+Math.random()2;
t.wind = -1.5+Math.random()
(1.4
3);
t.onEnterFrame = mover;
}
};
mover = function() {
this._y += this.k;
this._x += this.wind;
if (this._y>height+10) {
this._y = -20;
}
if (this._x>width+20) {
this._x = -(width/2)+Math.random()(1.5width);
this._y = -20;
} else if (this._x<-20) {
this._x = -(width/2)+Math.random()(1.5width);
this._y = -20;
}
}
init ();

just off the top of my head, before u run the above code create an empty movieclip and then change this:

t = attachMovie(“snow”, “snow”+i, i);

to this:

t = snowHolder_mc.attachMovie(“snow”, “snow”+i, i); // assuming u called the empty mc snowHolder_mc.

then use snowHolder_mc.removeMovieClip();

it should work, but removeMov… will only work with a clip created using createEmptyMovieClip();

alternatively u could write a function with removes each snow mc one by one with a for loop.

Brendan, you’re the man. Your method is working. Thanks a million