penso di aver risolto
dati = new LoadVars();
dati.path = this;
dati.onLoad = function(ok) {
if (ok) {
this.path.campoTesto.text = this.testo;
}
};
file = "frasi/frase_"+Math.round(Math.random()*2)+".txt";
dati.load(file);
così ad esmpio dovrebbe gestire solo i file:
frase_0
frase_1
frase_2
giusto?

Rispondi quotando