# Snow Animation Fade Away

**URL:** <https://forum.kirupa.com/t/snow-animation-fade-away/303407>\
**Category:** flash\
**Created:** [January 19, 2010, 11:34pm UTC](https://forum.kirupa.com/t/snow-animation-fade-away/303407 "2010-01-19T23:34:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JSUN](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@JSUN](https://forum.kirupa.com/u/JSUN)\
**Post date:** [January 19, 2010, 11:34pm UTC](https://forum.kirupa.com/t/snow-animation-fade-away/303407/1 "2010-01-19T23:34:39Z")

</div>

Hi, I’m a bit new to AS2 and have followed the tutorial for the Snow Animation ([http://www.kirupa.com/developer/flash8/snow2.htm](http://www.kirupa.com/developer/flash8/snow2.htm)). I’m wanting the snow to stop after a few seconds and fade out. Anyone know how to do this off hand? I’m a little stumped. ;( Thanks!

-Jeff S.

p.s. Here’s the AS code:

init = function () {  
width = 300;  
// pixels  
height = 200;  
// 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.5_width);  
t.\_y = -(height/2)+Math.random()_(1.5_height);  
t.\_xscale = t.\_yscale=50+Math.random()_(max\_snowsize_10);  
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.5_width);  
this.\_y = -20;  
} else if (this.\_x\<-20) {  
this.\_x = -(width/2)+Math.random()_(1.5_width);  
this.\_y = -20;  
}  
}  
init();

Help!
