# Snowfall 3.0

**URL:** <https://forum.kirupa.com/t/snowfall-3-0/312108>\
**Category:** Uncategorized\
**Created:** [July 26, 2010, 1:19am UTC](https://forum.kirupa.com/t/snowfall-3-0/312108 "2010-07-26T01:19:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![autumnmedia](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@autumnmedia](https://forum.kirupa.com/u/autumnmedia)\
**Post date:** [July 26, 2010, 1:19am UTC](https://forum.kirupa.com/t/snowfall-3-0/312108/1 "2010-07-26T01:19:37Z")

</div>

so i am editing the snow3.0 tutorial  
here is my code

init = function () {  
width = 970;  
// pixels  
height = 110;

w0 = 120;  
w1 = 100;  
w2 = 65;  
w3 = 40;  
w4 = 20;

l0 = 40;  
l1 = 60;  
l2 = 80;  
l3 = 60;  
l4 = 40;

// pixels  
max\_snowsize = 7;  
// pixels  
snowflakes = Math.random()_5;  
// quantity  
for (i=0; i\<snowflakes; i++) {  
t = attachMovie(“leaf”, “leaf”+i, i);  
t.\_alpha = 20+Math.random()60;  
t.\_x = width-this[“w”+i];  
t.\_y = height-this[“l”+i];  
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() {  
snowflakes = Math.random(5);  
}  
init();

now it does everything i want it to do, but it doesn’t removed my movieclips when they have played out and doesn’t add anymore new movieclips?

any suggestion?

thanks!
