Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/03/2006, 08:38
Sanva
 
Fecha de Ingreso: diciembre-2005
Ubicación: Redondela (Galicia)
Mensajes: 368
Antigüedad: 18 años, 4 meses
Puntos: 1
Prueba esto...

Código:
var mínimo:Number = 1 //Fotograma mínimo
var máximo:Number = 200 //Fotograma máximo
this.onEnterFrame = function (){
	var num:Number = 0
        //Si num está por debajo del mínimo o es 0, el while continuará...
        //No es posible un número más grande que máximo
	while (!num || num<mínimo){
		num = Math.round(Math.random()*máximo)
	}
	gotoAndStop(num)
}
function antídoto (){
	delete this.onEnterFrame
}
Espero haber entendido bien tu problema y que te sirva mi solución