# Actionscript 2.0, cancelling snow animation, novice needs help!

**URL:** <https://forum.kirupa.com/t/actionscript-2-0-cancelling-snow-animation-novice-needs-help/284180>\
**Category:** flash\
**Created:** [March 16, 2009, 11:47am UTC](https://forum.kirupa.com/t/actionscript-2-0-cancelling-snow-animation-novice-needs-help/284180 "2009-03-16T11:47:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OneEleven](https://avatars.discourse-cdn.com/v4/letter/o/f19dbf/32.png) [@OneEleven](https://forum.kirupa.com/u/OneEleven)\
**Post date:** [March 16, 2009, 11:47am UTC](https://forum.kirupa.com/t/actionscript-2-0-cancelling-snow-animation-novice-needs-help/284180/1 "2009-03-16T11:47:37Z")

</div>

Hey guys, got a cool snow animation on the first frame of my movie clip and I want to make it stop in the second but I have no idea how to go about it. I’m serious when I say novice so please be nice. 🙂  
Code below:

init = function () {

```
width = 800;

height = 500;

max_snowsize = 15;

snowflakes = 75;

for (i=0; i&lt;snowflakes; i++) {

t = attachMovie("snow", "snow"+i, i);
t._alpha = 20+Math.random()*60;
t._x = -(width/2)+Math.random()*(1.5*width);
t._y = -(height/2)+Math.random()*(1.5*height);
t._xscale = t._yscale=50+Math.random()*(max_snowsize*12);
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&gt;height+10) {

this._y = -20;

}
if (this._x&gt;width+20) {

this._x = -(width/2)+Math.random()*(1.5*width);
this._y = -20;

} else if (this._x&lt;-20) {

this._x = -(width/2)+Math.random()*(1.5*width);
this._y = -20;

}

}
init();

```

Assistance would be greatly appreciated.
