How to make it stop ‘snowin’ on frame 2 or shtop the the loading ends?? i tried putting stop(); blank keyframe but it still keep on last till my last keyframe
action script for layer
for (k=0; k<200; k++) {
duplicateMovieClip(this.snow, “snow”+k, k);
}
action script for snow
onClipEvent (load) {
//specifies the size of the movie stage
movieWidth = 800;
movieHeight = 600;
//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;k<50
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;
}
}