il label va bene ma posso assegnare il data cosi?
codice:
function carica() {
lista.removeAll();
var dati = new LoadVars();
dati.onLoad = function() {
var myArray = new Array();
var totale = Number(this.totale);
if (totale == 0) {
errore = "Non ci sono articoli";
} else {
for (var i = 1; i<=totale; i++) {
myArray[i] = new Object();
myArray[i]["ntitolo"] = this["titolo"+i];
myArray[i]["ndata"] = this["data"+i];
myArray[i]["ntestata"] = this["testata"+i];
myArray[i]["nfile"] = this["file"+i];
lista.addItem(myArray[i]["ntitolo"]+" - "+myArray[i]["ndata"]+" - "+myArray[i]["ntestata"],myArray[i]["nfile"]);
}
errore = "Totale Articoli: "+totale;
}
};
dati.load(_global.pathfile+"http://localhost/Nazzario/Search/lista.php");
}
carica();
:master: