# Falling snow Tut. -- Flash 5 or MX?

**URL:** https://forum.kirupa.com/t/falling-snow-tut-flash-5-or-mx/133017
**Category:** Uncategorized
**Created:** [January 4, 2005, 7:02pm UTC](https://forum.kirupa.com/t/falling-snow-tut-flash-5-or-mx/133017 "2005-01-04T19:02:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tiger20](https://avatars.discourse-cdn.com/v4/letter/t/82dd89/32.png) [@tiger20](https://forum.kirupa.com/u/tiger20)
#### Post date: [January 4, 2005, 7:02pm UTC](https://forum.kirupa.com/t/falling-snow-tut-flash-5-or-mx/133017/1 "2005-01-04T19:02:02Z")

</div>

I’m using the falling snow tutorial in a Diretor project (no Flash MX xtra/plug-in). Is it Flash 5 or MX?  
If it is in MX, how can I convert it to 5?

here’s the code:

* * *

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

* * *

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

```
//variables that will modify the falling snow
i = 1+Math.random()*3;
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;  
}  
}

* * *

Thanks…
