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!!