Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/08/2003, 17:51
Avatar de TMeister
TMeister
Crazy Coder
 
Fecha de Ingreso: enero-2002
Ubicación: En la Oficina
Mensajes: 2.880
Antigüedad: 22 años, 2 meses
Puntos: 193
Hace tiempo hice un ejemplo parecido pero de nuevo lo posteo...

primero el AS....

Código:
function efecto(texto, tiempo, ncolor, tamanio) {
	this.texto = texto;
	this.tiempo = tiempo;
	this.ncolor = ncolor;
	this.tamanio = tamanio;
	this.char = 1;
	this.interval = setInterval(this, "l", this.tiempo);
}
efecto.prototype.l = function() {
	f = new TextFormat();
	f.color = this.Ncolor;
	f.size = this.tamanio;
	createTextField("c", 1, 10, 10, 0, 0);
	c.setNewTextFormat(f);
	c.border = true;
	c.borderColor = 0xFFFFFF;
	c.autoSize = true;
	c.text = this.texto.substr(0, this.char);
	if (this.char<this.texto.length) {
		this.char++;
	} else {
		clearInterval(this.interval);
		return true;
	}
};
carga = new LoadVars();
carga.load("mensaje.txt");
carga.onLoad = function(){
	a = new efecto(this.mensaje, this.tiempo, this.color, this.tamanio);
	}
y el contenido de mensaje.txt

Código:
&mensaje=Este texto se carga de un TXT externo....&
&tiempo=100&
&color=0xFF0000&
&tamanio=15&

Por cualquier cosa aqui cuelgo el Fla... Enjoy

AQUI EL FLA

Saludos!!