Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/06/2006, 15:01
Avatar de luistar
luistar
 
Fecha de Ingreso: marzo-2005
Ubicación: Argentina
Mensajes: 939
Antigüedad: 19 años, 1 mes
Puntos: 0
abre un nuevo documento de Flash 8
y prueba este código:
Código:
//-------------->
var random_entre:Function = function(minimo:Number,maximo:Number):Number{
	return Math.round(Math.random()*(maximo-minimo))+minimo;
}
//-------------->
var campo:TextField = this.createTextField('campo',this.getNextHighestDepth(),50,50,24,24);
var tiempo_inicio:Number = getTimer();
var tiempo:Number = 5; //segundos
this.onEnterFrame=function():Void{
	campo.text = String.fromCharCode(random_entre(65,90));
	if(getTimer()-tiempo_inicio>=tiempo*1000){
		campo.text='C';
		delete this.onEnterFrame;
	}
}
//-------------->
stop();
esta es una de las maneras :D
__________________
Si digo que soy mentiroso. ¿Lo soy?