Una forma sería hacer un campo dinámico.
Un Array con los textos que irian ahi dentro.
Ir tomando y sacando del Array con un random un texto aleatorio
E ir mostrandolo en la caja luego, puedes hacerlos con tweens, para controlar la aparición y desaparición del texto. con alphaTo
algo así
Código :
#include "mc_tween2.as"
var textos:Array;
textos = new Array("texto 1", "texto 2", "texto 3", "texto 4", "texto 5","texto 6");
caja_txt._alpha=0;
ver();
function ver() {
var ntext:Number;
ntext = random(textos.length-1);
caja_txt.text = "";
caja_txt.stopTween();
caja_txt.text = textos.splice(ntext, 1);
caja_txt.alphaTo(100,2,"easeOutExpo");
trace(caja_txt.text);
caja_txt.onTweenComplete = function() {
if (textos.length>0) {
ocultar();
}
};
}
function ocultar() {
caja_txt.stopTween();
caja_txt.alphaTo(0,2,"easeOutExpo",3);
caja_txt.onTweenComplete = function() {
ver();
};
}saludos alejandro