ciao a tutti,

non capisco perchè se inserisco questo codice flash mi restituisce la classica finestra che dice "questo script sta rallentando ...."

non riesco a vedere alcun errore

codice:
// 
search.onRelease = function() {
    trace(_global.pathfile);
    trace(_global.cercapath);
    myDforP = new LoadVars();
    myDforP.cercap = cercaP.text;
    myDforP.onLoad = function(success) {
        trace(this.totale);
        var totale:Number = Number;
        var myArrayP:Array = new Array();
        for (i=1; i<=this.totale; i++) {
            myArrayP[i] = new Object();
            myArrayP[i]["nIDProdotto"] = _root.myDforP["idprodotto"+i];
            myArrayP[i]["ncodProdotto"] = _root.myDforP["codprodotto"+i];
            myArrayP[i]["nNomeProdotto"] = _root.myDforP["nomeprodotto"+i];
            myArrayP[i]["nIDBar"] = _root.myDforP["idbar"+i];
            myArrayP[i]["nbar"] = _root.myDforP["bar"+i];
            myArrayP[i]["nquantitB"] = _root.myDforP["quantitb"+i];
            myArrayP[i]["nCategoria"] = _root.myDforP["categoria"+i];
            myArrayP[i]["ndataodiernaB"] = _root.myDforP["dataodiernab"+i];
            myArrayP[i]["ngestore"] = _root.myDforP["gestore"+i];
            myArrayP[i]["nscarico"] = _root.myDforP["scarico"+i];
            myArrayP[i]["ndatascarico"] = _root.myDforP["datascarico"+i];
            trace("["+i+"]"+"ID: "+myArrayP[i]["nIDProdotto"]+" Codice: "+myArrayP[i]["ncodProdotto"]+" Prodotto: "+myArrayP[i]["nNomeProdotto"]+" Id Bar: "+myArrayP[i]["nIDBar"]+" Bar: "+myArrayP[i]["nbar"]+" Quantità: "+myArrayP[i]["nquantitB"]+" Categoria: "+myArrayP[i]["nCategoria"]+" Data Assegnazione: "+myArrayP[i]["ndataodiernaB"]+" Gestore: "+myArrayP[i]["ngestore"]+" Residuo: "+myArrayP[i]["nscarico"]+" Data scarico: "+myArrayP[i]["ndatascarico"]);
            // scaricaReparto.addItem({ID:myArrayP[i]["nIDProdotto"], Codice:myArrayP[i]["ncodProdotto"], Prodotto:myArrayP[i]["nNomeProdotto"], Categoria:myArrayP[i]["nCategoria"], Bar:myArrayP[i]["nbar"], PZ:myArrayP[i]["nquantitB"], Residuo:myArrayP[i]["nscarico"]});
        }
    };
    trace(_global.cercapath);
    myDforP.sendAndLoad(_global.cercapath, myDforP, "get");
};