Hi guys -
I have this script in Frame 1 of a scene. On another layer, I have a button that goes to the next scene on click. For some reason, the MCs that this script creates are still there on the next scene. What and where do I have to do to get rid of this on the next scene??
function drawCircle(taille,col,pro){
var mc=this.createEmptyMovieClip(“b”+pro,pro);
mc.lineStyle(taille,col,100);
mc.lineTo(.15,.45);
return mc;}
function drawThing(){
cl1=drawCircle(a=30+random(50),0xffffff,(++prof)+10000);
cl2=drawCircle(a+20,0,prof);
cl1._x=cl2._x=random (550);
cl1._y=cl2._y=random (400);
cl1.onEnterFrame=cl2.onEnterFrame=function(){
if (120 - this._xscale > 1) this._xscale = this._yscale += (120 - this._xscale)/7;
else this.onEnterFrame = function(){
this._alpha -= 2;
if (this._alpha < 5) this.removeMovieClip();}}}
setInterval(drawThing,30);
stop();