# Problems with actionscript between scenes

**URL:** <https://forum.kirupa.com/t/problems-with-actionscript-between-scenes/122265>\
**Category:** Uncategorized\
**Created:** [September 12, 2004, 5:18am UTC](https://forum.kirupa.com/t/problems-with-actionscript-between-scenes/122265 "2004-09-12T05:18:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hunabku](https://avatars.discourse-cdn.com/v4/letter/h/6a8cbe/32.png) [@hunabku](https://forum.kirupa.com/u/hunabku)\
**Post date:** [September 12, 2004, 5:18am UTC](https://forum.kirupa.com/t/problems-with-actionscript-between-scenes/122265/1 "2004-09-12T05:18:13Z")

</div>

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?
