Tienes que crear en el escritorio un campo texto que se llame contenido su variable
pon tu framerate a 36 fps
Código :
texto="TEXTO DE PRUEBA"
i=0;
contenido="";
/* CREAMOS 2 ARRAYS
- ORIGEN: contendra todos los caracteres de la cadena de texto
- DESTINO: contendra los caracteres, pero no los repetidos
*/
origenArray = new Array();
destinoArray = new Array();
// CONVERTIMOS TEXTO EN EL PRIMER ARRAY, LO ORDENAMOS
origenArray = texto.split("");
origenArray = origenArray.sort();
// INTRODUCIMOS DATOS EN EL ARRAY DESTINO
for (x=0; x< origenArray.length; x++) {
destinoArray.sort();
if (origenArray[x] <> destinoArray[(destinoArray.length - 1)]) {
destinoArray.push(origenArray[x]);
}
}
longitud = destinoArray.length;
_root.onEnterFrame=function(){
letra = texto.charAt(i);
contenido = texto.slice(0, i);
if (contenido.length<texto.length){
if (letra == destinoArray[int(random(longitud))]) {
i++;
contenido=texto.substr(0,i);
} else { contenido = contenido + destinoArray[int(random(longitud))];}
} else {
delete _root.onEnterFrame;
}
}este code, fue creado por ochio, y tomado del foro hermano de
www.flasla.com