Tengo dos fotogramas , en el primero este código:
stop();
function mover() {
this._y += this.speed;
this._yscale += 1;
this.speed++;
if(this._y >300) {
this._y =1;
this.speed = Math.random()* 10;
this._yscale=1;
}
}
function starField(x,y,n){
for(var i=0; i<n; i++) {
var star = this.createEmptyMovieClip("star" + i, i);
var dot = star.createEmptyMovieClip("dot", 0);
star._rotation = Math.random()* 360;
star._x=x;
star._y=y;
dot.lineStyle(0, 0xFFFFFF, 100);
dot.moveTo(0, 1);
dot.lineTo(0, 11);
dot.onEnterFrame= mover;
dot.speed =Math.random()* 10;
star._alpha=50;
}
}
starField(330,125,500);
En el segundo fotograma tengo un stop(); y una animación pero la función que es un campo de estrellas se continua ejecutando y no encuentro la manera de hacerla parar. Como narices se deja de repetir una funcion?
