# Help for Falling Snow 2.0 Tutorial

**URL:** <https://forum.kirupa.com/t/help-for-falling-snow-2-0-tutorial/109398>\
**Category:** Uncategorized\
**Created:** [May 5, 2004, 5:09am UTC](https://forum.kirupa.com/t/help-for-falling-snow-2-0-tutorial/109398 "2004-05-05T05:09:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![LotekDBA](https://avatars.discourse-cdn.com/v4/letter/l/f17d59/32.png) [@LotekDBA](https://forum.kirupa.com/u/LotekDBA)\
**Post date:** [May 5, 2004, 5:09am UTC](https://forum.kirupa.com/t/help-for-falling-snow-2-0-tutorial/109398/1 "2004-05-05T05:09:11Z")

</div>

I need help on how to make the Falling Snow 2.0 tutorial. I’ve been following the instruction thoroughly but for some reason there were always errors on “onClipEvent”. I hope someone can help and guide me to do the Falling Snow.  
Thanks alot i’ll be waiting for your help guys.  
Peace

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 5, 2004, 2:28pm UTC](https://forum.kirupa.com/t/help-for-falling-snow-2-0-tutorial/109398/2 "2004-05-05T14:28:55Z")

</div>

Here is my .fla file : [http://www.angelfire.com/me4/dean/3.fla](http://www.angelfire.com/me4/dean/3.fla)

And here is my code in the

```auto
 tags: 
action: Frame 1 --&gt;&gt;&gt; 
snowflakes = 75;
do {
   duplicateMovieClip(snow, "snow"+k, k);
   k++;
} while (k != snowflakes);

snow, &lt;snow&gt; --&gt;&gt;&gt; 

 onClipEvent (load) {
	//variables
	width = 300;
	height = 200;
	//random x,y, and alpha 
	this._xscale = this._yscale=50+Math.random()*100;
	this._alpha = 20+Math.random()*50;
	//random x and y for flakes
	this._x = -width+Math.random()*(3*width);
	this._y = -10+Math.random()*height;
	//speed and trigonometric value
	i = 1+Math.random()*2;
	k = -Math.PI+Math.random()*Math.PI;
	rad = 0;
}
onClipEvent (enterFrame) {
	// horizontal movement
	rad += (k/180)*Math.PI;
	xmovement = _root._xmouse;
	this._x -= Math.cos(rad)+(xmovement-(width/2))/50;
	// vertical movement
	this._y += i;
	// remove clips when they misbehave (overstep boundaries)
	if (this._x&gt;(width+50)) {
		this._x = -45;
		this._y = Math.random()*height*2;
	}
	if (this._x&lt;-50) {
		this._x = width+45;
		this._y = Math.random()*height*2;
	}
	if (this._y&gt;=height) {
		this._y = -50;
		this._x = -width+Math.random()*(3*width);
	}
}
```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 5, 2004, 2:43pm UTC](https://forum.kirupa.com/t/help-for-falling-snow-2-0-tutorial/109398/3 "2004-05-05T14:43:31Z")

</div>

I think this is what you are looking for

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 5, 2004, 3:26pm UTC](https://forum.kirupa.com/t/help-for-falling-snow-2-0-tutorial/109398/4 "2004-05-05T15:26:35Z")

</div>

Yeah dude, that’s definitely im looking for. But how did it work? What did you do?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 5, 2004, 3:30pm UTC](https://forum.kirupa.com/t/help-for-falling-snow-2-0-tutorial/109398/5 "2004-05-05T15:30:35Z")

</div>

1. create snow movieclip (that little white circle)
2. set it’s instance name to “snow”
3. change the for-while loop in the main timeline and set an initial value to the variable k before that loop.
4. add the load and enterframe code to the snow movieclip
5. I think that was it 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 5, 2004, 3:59pm UTC](https://forum.kirupa.com/t/help-for-falling-snow-2-0-tutorial/109398/6 "2004-05-05T15:59:14Z")

</div>

Thanks Dude…  
However, i was wondering how come Falling Snow 2.0 is in the tutorial but it’s not working.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 5, 2004, 4:02pm UTC](https://forum.kirupa.com/t/help-for-falling-snow-2-0-tutorial/109398/7 "2004-05-05T16:02:29Z")

</div>

it is working, but I think you are required to do the snow tutorial v 1 first … I think…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 5, 2004, 4:28pm UTC](https://forum.kirupa.com/t/help-for-falling-snow-2-0-tutorial/109398/8 "2004-05-05T16:28:28Z")

</div>

OH i c, so that one that you told thats V1.0 am i right?  
Well thanks alot for your help
