Falling Snow Tutorial [edited title]

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 : 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 :


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

**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 :blush: )!