Salve a tutti, ho creato una cartina in cui ci sono circa 400 paesi che vengono visualizzati solo a richiesta dell'utente, stranamente quando richiamo dal 35° paese in poi il filmato non visualizza più nulla, ho supposto che il problema possa essere nel ciclo visto che tutto il resto sembra essere giusto.

Questo è il codice AS:

function ApriXML()
{
function Metti(success)
{
if (mioxml.loaded)
{
apparray = mioxml.childNodes;
Dati();
delete mioxml;
delete apparray;
Imposta();
} // end if
} // End of the function

mioxml = new XML();
apparray = new Array();
mioxml.load(filexml);
mioxml.onLoad = Metti;
} // End of the function

function Dati()
{
comune = new Array();
com20 = new Array();
id = new Array();

for (k=0; k<=apparray.length; k++)
if (apparray[k].nodeName == "com") {
comune.push(apparray[k].childNodes.toString());
} else if (apparray[k].nodeName == "com20") {
com20.push(apparray[k].childNodes.toString());
} else if (apparray[k].nodeName == "id") {
id.push(apparray[k].childNodes.toString());
} else if (apparray[k].nodeName == "totrec") {
_root.totrec = apparray[k].childNodes.toString();

}; // end of for
}; // End of the function

function Imposta() {

Paese20= com20[0];
Paese2_20 = com20[1];
.....

frame = Number(Paese20);
tellTarget("_level0/comuni/paese")
{
gotoAndStop(eval("/:frame"));
} // End of TellTarget

frame = Number(Paese2_20);
tellTarget("_level0/comuni/paese2")
{
gotoAndStop(eval("/:frame"));
} // End of TellTarget

.....

}; // End of the function

filexml = "comuni.xml?n="+(random(999999));
ApriXML();

Dove sbaglio?
Grazie in anticipo.