i made an animation with 2 scenes. in Scene 1 i have a snow efect that uses 2 layers: the first one for the snow movieclip with this script:
onClipEvent (load) {
movieWidth = 800;
movieHeight = 600;
i = 1+Math.random()*4;
k = -Math.PI+Math.random()*Math.PI;
this._xscale = this._yscale=50+Math.random()*100;
this._x = -20+Math.random()*movieWidth;
this._y = -10+Math.random()*movieHeight;
}
onClipEvent (enterFrame) {
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;
}
}
and the second this script:
for (k=0; k<10; k++)
duplicateMovieClip(_root.hoja, “hoja”+k, k);
The fact is that when i jump to the second scene the snow keeps falling.
How can i stop that movie clip to have a “snowless” second scene?