# Another snow problem \[renamed\]

**URL:** <https://forum.kirupa.com/t/another-snow-problem-renamed/150235>\
**Category:** flash\
**Created:** [June 6, 2005, 3:38am UTC](https://forum.kirupa.com/t/another-snow-problem-renamed/150235 "2005-06-06T03:38:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yozl](https://avatars.discourse-cdn.com/v4/letter/y/838e76/32.png) [@yozl](https://forum.kirupa.com/u/yozl)\
**Post date:** [June 6, 2005, 3:38am UTC](https://forum.kirupa.com/t/another-snow-problem-renamed/150235/1 "2005-06-06T03:38:08Z")

</div>

How to make it stop ‘snowin’ on frame 2 or shtop the the loading ends?? i tried putting stop(); blank keyframe but it still keep on last till my last keyframe

action script for layer

for (k=0; k\<200; k++) {  
duplicateMovieClip(this.snow, “snow”+k, k);  
}

action script for snow

onClipEvent (load) {  
//specifies the size of the movie stage  
movieWidth = 800;  
movieHeight = 600;

//variables that will modify the falling snow  
i = 1+Math.random()\*2;  
k = -Math.PI+Math.random()\*Math.PI;

//giving each snowflake unique characteristics  
this.\_xscale = this.\_yscale=50+Math.random()\*100;k\<50  
this.\_alpha = 75+Math.random()\*100;  
this.\_x = -10+Math.random()\*movieWidth;  
this.\_y = -10+Math.random()\*movieHeight;  
}  
onClipEvent (enterFrame) {  
//putting it all together  
rad += (k/180)\*Math.PI;  
this.\_x -= Math.cos(rad);  
this.\_y += i;  
if (this.\_y\>=movieHeight) {  
this.\_y = -5;  
}  
if ((this.\_x\>=movieWidth) || (this.\_x\<=0)) {  
this.\_x = -10+Math.random()\*movieWidth;  
this.\_y = -5;  
}  
}
