Ciao
devo fare il preload dei dati ricavati dal db. Funziona come gli altri preload?
Io ho fatto così ma non funziona.
Frame 1
var percorso = new String("http://www.xxxxx.xxx/flash/");
var carica = new LoadVars();
carica.load(percorso+"news.php");
Frame 4
total = carica.getBytesTotal();
loaded = carica.getBytesLoaded();
if(loaded == total){
carica.onLoad=function(success){
if(success) {
var output = new String();
for(var i=1; i<=3; i++) {
if(i!=1) output +="
";
output += this["data"+i]+"
";
output += this["testo"+i]+"
";
}
news.htmlText = output;
}
else {
news.htmlText = "Errore nel caricamento file!
Verificare il percorso e il file.";
}
}
gotoAndPlay("prima");
} else {
gotoAndPlay(2);
}

Rispondi quotando
