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…