# Falling Snow Tutorial \[edited title\]

**URL:** <https://forum.kirupa.com/t/falling-snow-tutorial-edited-title/116253>\
**Category:** Uncategorized\
**Created:** [July 15, 2004, 10:05pm UTC](https://forum.kirupa.com/t/falling-snow-tutorial-edited-title/116253 "2004-07-15T22:05:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dudeman](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@dudeman](https://forum.kirupa.com/u/dudeman)\
**Post date:** [July 15, 2004, 10:05pm UTC](https://forum.kirupa.com/t/falling-snow-tutorial-edited-title/116253/1 "2004-07-15T22:05:33Z")

</div>

I think it must be something chemical, because every september’ish time, I get these weird cravings for flash and integration :stunned:

Okay, regarding Kirupa’s tutorial on falling snow : [kirupa.com - Create Falling Snow](http://www.kirupa.com/developer/mx/snow2.htm)

How is it possible for this script to work reverse, kind of like bubbles?

I tried switching :

```auto

onClipEvent (enterFrame) {
	//putting it all together
	rad += (k/180)*Math.PI;
	**this._x [COLOR=Red]+[/COLOR]= Math.cos(rad);**
	**this._y [COLOR=Red]-[/COLOR]= i;**
	if (this._y>=movieHeight) {
		this._y = -5;
	}
	if ((this._x>=movieWidth) || (this._x<=0)) {
		this._x = -10+Math.random()*movieWidth;
		this._y = -5;
	}
}

```

and I still didn’t get it to work properly… I got it to flip form right side up to up side down, but the movie height and width limiters are senseless.

The original code was

```auto
**this._x [COLOR=Red]-[/COLOR]= Math.cos(rad);**
**this._y [COLOR=Red]+[/COLOR]= i;**

```

See if you can help me, I haven’t been doing real flash for a whole year or more(mx changed to hax0r mode, no more newbie input mode 😊 )!
