# Snow Question

**URL:** <https://forum.kirupa.com/t/snow-question/168647>\
**Category:** flash\
**Created:** [November 9, 2005, 12:11am UTC](https://forum.kirupa.com/t/snow-question/168647 "2005-11-09T00:11:12Z")\
**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, 12:11am UTC](https://forum.kirupa.com/t/snow-question/168647/1 "2005-11-09T00:11:12Z")

</div>

Hello all,

I am using the snow method wonderfully created here on Kirupa and have a quick question. As it is now the clip starts with snow, I’d like the snow to slowly start falling at say 3 seconds into the clip and then stop after 5. The stopping works fine using the removesnow() with a setInterval, but I can’t figure out a way to get the snow to start falling. Using setInterval just suddenly fills the screen with snow. 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]
