ciao a tutti,
carico i dati in base ad una condizione li inserisco o in un datagrid o in un'altro posso alla fine ricavare quanti record ho nel primo e quanti nel secondo?

codice:
function cercaProdotti() {
    var cercoReparto:LoadVars = new LoadVars();
    cercoReparto.onLoad = function() {
        _root.intestazione.text = "Totale: "+this.totale;
        trace(this.totale+" - "+cercoReparto);
        risultatoLista.removeAll();
        esauritiLista.removeAll();
        // ciclo i dati un numero di volte tante quanti saranno i risultati
        for (var i:Number = 1; i<=this.totale; i++) {
            // assegno i dati caricati all'oggetto myArray[i]
            var obj:Object = new Object();
            obj.ID = this["ID"+i];
            obj.RIFERIMENTO = this["riferimento"+i];
            obj.FORNITORE = this["fornitore"+i];
            obj.PRODOTTO = this["prodotto"+i];
            obj.DESCRIZIONE = this["descrizione"+i];
            obj.QUANTITA = this["quantita"+i];
            obj.PREZZO = this["prezzo"+i];
            obj.CATEGORIA = this["categoria"+i];
            obj.MARCA = this["marca"+i];
            obj.CAPACITA = this["capacita"+i];
            obj.CODICE = this["codice"+i];
            obj.DATA = this["datacarico"+i];
            obj.PZ = this["quantita"+i];
            if (this["quantita"+i] != 0) {
				 risultatoLista.addItem(obj);
            } else {
                 esauritiLista.addItem(obj);
            }
        }
        risultatoLista.addEventListener("change", cercoReparto);
    };
    cercoReparto.load(_global.pathfile+"script/list3.php");
}
:master: grazie