# Need a little help wih Action Script

**URL:** <https://forum.kirupa.com/t/need-a-little-help-wih-action-script/253816>\
**Category:** flash\
**Created:** [March 5, 2008, 11:57am UTC](https://forum.kirupa.com/t/need-a-little-help-wih-action-script/253816 "2008-03-05T11:57:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gurpinder\_Singh](https://avatars.discourse-cdn.com/v4/letter/g/dc4da7/32.png) [@Gurpinder\_Singh](https://forum.kirupa.com/u/Gurpinder_Singh)\
**Post date:** [March 5, 2008, 11:57am UTC](https://forum.kirupa.com/t/need-a-little-help-wih-action-script/253816/1 "2008-03-05T11:57:25Z")

</div>

this is the Action Script from “snowfall 1.0” on this ste!

I tried it with “Flash 8” and all seems to work well without that line in red!

i think it makes flakes to float around in MX, but in Flash 8, it dosn’t work.

can anyone please tell me, what else can i put there.

```auto
 
onClipEvent (load) {
 //specifies the size of the movie stage
 movieWidth = 300;
 movieHeight = 200;
 
 //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
[COLOR=red]rad += (k/180)*Math.PI;[/COLOR]
 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;
 }
}

```

Thank You.
