Eliminar scripts por favor ayuda!!
Publicado por Nahuel (1 intervención) el 24/12/2007 01:43:28
Tengo un problema con este (y con otros scripts), ya q los llamo en una determinada escena y cuando salgo de esa escena el script sigue activo, si alguien podria decirme como hacer para q el codigo afecte solo a una escena se los agrradeceria mucho!!
i = 0;
onEnterFrame = function() {
_root.attachMovie("letra","letra"+i,100+i);
ref = this["letra"+i];
ref._x = 135; // Posición horizontal inicial
ref._y = 8888; // Posición vertical inicial
ref._alpha = 70; // 70% de opacidad
// Escala inicial de 1%
ref._xscale = ref._yscale = 1;
// Obtenemos un valor aleatorio de 97 a 122
ascii = random(26)+97;
// Asignamos el valor a nuestro texto dinámico
ref.char.text = String.fromCharCode(ascii);
ref.rot = (Math.random()*6)-2; // Rotación
ref.vel = (Math.random()*2)+.6; // Velocidad
i++
}
i = 0;
onEnterFrame = function() {
_root.attachMovie("letra","letra"+i,100+i);
ref = this["letra"+i];
ref._x = 135; // Posición horizontal inicial
ref._y = 8888; // Posición vertical inicial
ref._alpha = 70; // 70% de opacidad
// Escala inicial de 1%
ref._xscale = ref._yscale = 1;
// Obtenemos un valor aleatorio de 97 a 122
ascii = random(26)+97;
// Asignamos el valor a nuestro texto dinámico
ref.char.text = String.fromCharCode(ascii);
ref.rot = (Math.random()*6)-2; // Rotación
ref.vel = (Math.random()*2)+.6; // Velocidad
i++
}
Valora esta pregunta


0