# Snow Glorious Snow

**URL:** <https://forum.kirupa.com/t/snow-glorious-snow/168668>\
**Category:** flash\
**Created:** [November 9, 2005, 5:21am UTC](https://forum.kirupa.com/t/snow-glorious-snow/168668 "2005-11-09T05:21:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![misterpatrick](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@misterpatrick](https://forum.kirupa.com/u/misterpatrick)\
**Post date:** [November 9, 2005, 5:21am UTC](https://forum.kirupa.com/t/snow-glorious-snow/168668/1 "2005-11-09T05:21:45Z")

</div>

Hello all,

Hate to cross post this, but I’m not getting any takers over in the Flash 8 forum.

I am using the snow method wonderfully created here on Kirupa and have a quick question.

Currently, the movie just starts with a screen full of snow. I’d like to get it to start off screen and fall in. Basically setting an initial state for the .\_y of 0. I also can’t seem to get a delay working for the function. Ideas?

Thanks!

[AS]  
var movieWidth = 470;  
var movieHeight = 230;  
createEmptyMovieClip(“snowholder”,this.getNextHighestDepth());  
function makesnow() {  
for (var i = 0; i\<500; i++) {  
var clip = snowholder.attachMovie(“snow”, “s”+i, i);  
clip.i = 1+Math.random()\*2;  
clip.k = -Math.PI+Math.random()\*Math.PI;  
clip.\_xscale = clip.\_yscale=20+Math.random()\*100;  
clip.\_alpha = 75+Math.random()\*100;  
clip.\_x = -10+Math.random()\*movieWidth;  
clip.\_y = -10+Math.random()\*movieHeight;  
clip.finished = false  
clip.onEnterFrame = move;  
}  
}  
function move() {  
this.rad += (this.k/180)\*Math.PI;  
this.\_x -= Math.cos(this.rad);  
this.\_y += this.i;  
if (this.\_y\>=movieHeight) {  
if(!this.finished){  
this.\_y = -5;  
}else{  
this.removeMovieClip()  
}  
}  
if ((this.\_x\>=movieWidth) || (this.\_x\<=0)) {  
this.\_x = -10+Math.random()\*movieWidth;  
this.\_y = -5;  
}  
}  
function removesnow() {  
for (var obj in snowholder) {  
if (typeof snowholder[obj] == “movieclip”) {  
snowholder[obj].finished = true  
}  
}  
}

makesnow();  
setInterval(removesnow,5000);  
[/AS]
