# Stop Kirupa's Falling Snow

**URL:** <https://forum.kirupa.com/t/stop-kirupas-falling-snow/209855>\
**Category:** flash\
**Created:** [December 12, 2006, 9:39pm UTC](https://forum.kirupa.com/t/stop-kirupas-falling-snow/209855 "2006-12-12T21:39:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RandyK](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@RandyK](https://forum.kirupa.com/u/RandyK)\
**Post date:** [December 12, 2006, 9:39pm UTC](https://forum.kirupa.com/t/stop-kirupas-falling-snow/209855/1 "2006-12-12T21:39:13Z")

</div>

[COLOR=navy]Hi all![/COLOR]  
[COLOR=navy]I am trying to find a way to stop the snow from Kirupa’s “Create[FONT=Verdana] Falling Snow” tutorial. When I change scenes in Flash I need the snow to have stopped. This is his tutorial that I used: [http://www.kirupa.com/developer/mx/snow.htm[/FONT][/COLOR]](http://www.kirupa.com/developer/mx/snow.htm%5B/FONT%5D%5B/COLOR%5D)

[COLOR=navy]Here is the action I am working with:[/COLOR]  
[COLOR=navy][/COLOR]  
[COLOR=navy]onClipEvent (unload) {  
//specifies the size of the movie stage  
movieWidth = 800;  
movieHeight = 516;

//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;  
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;  
}  
}  
[/COLOR]  
[COLOR=navy]Thanks for any help with this!!![/COLOR]  
[COLOR=navy]RandyK[/COLOR]
