codice:
function creaArray(msgApag) {
if (primaVolta == 1) {
creaPulsanti();
creaComponenti();
primaVolta = 0;
}
vediMSG.testo.text = "Visualizzati "+((msgApag<10) ? "0"+msgApag : msgApag)+" firme per pagina";
vediMSG.testo.autoSize = true;
maxMsgGB = nick.length; //totale firme
totMSG.testo.text = "tot firme: "+maxMsgGB;
totMSG.testo.autoSize = true;
a = Math.round(indietro._x+indietro._width);
dist = Math.round(avanti._x-a);
totMSG._x = a+Math.round((dist-totMSG._width)/2);
totMSG._y = indietro._y;
delete a; delete dist;
vediMSG._x = indietro._x;
cambiaMsgXpag._x = vediMSG._x+vediMSG._width+2;
vai._x = cambiaMsgXpag._x+cambiaMsgXpag._width+5;
vai._y = cambiaMsgXpag._y=vediMSG._y=totMSG._y+40;
totPacchettiMSG = Math.ceil(maxMsgGB/msgApag);
pacchettiMSG = new Array(totPacchettiMSG);
for (j=0; j<totPacchettiMSG; j++) {
pacchettiMSG[j] = "";
counter = 1;
for (i=(maxMsgGB-1); i>=0; i--) {
if (counter<=msgApag) {
counter++;
pacchettiMSG[j] += (i+1)+" - <u><font color='#000000'>"+
ladata[i]+"</font></u>
<font color='#000000'>"+
"Nickname:\t</font>"+nick[i];
pacchettiMSG[j] += "
<font color='#000000'>Messaggio:\t</font>"+msg[i];
pacchettiMSG[j] += "
<font size='12' color='#000000'>"+
"**************************</font>
";
} else {
counter = 1;
maxMsgGB = i+1;
break;
}
}
}
counter = 0;
datiGB.testo.htmlText = pacchettiMSG[counter];
controllaPULS();
}
LETTURA FILE:
primaVolta = 1;
function letturaFile() {
mioxml = new XML();
mioxml.ignoreWhite = true;
(inLocale==false)?filexml=filexml+"?a="+random(99999):'';
mioxml.load(filexml);
datiGB.testo.htmlText = "
Loading . . .
Attendere prego . . .";
mioxml.path = this;
mioxml.onLoad = function(ok) {
if (ok) {
attributiXML = new Array("ladata", "nick", "mail", "web");
for (i=0; i<attributiXML.length; i++) {
this.path[attributiXML[i]] = new Array();
}
var nodi = this.firstChild.childNodes;
msg = new Array();
for (i=0; i<nodi.length; i++) {
for (j=0; j<attributiXML.length; j++) {
this.path[attributiXML[j]].push(nodi[i].attributes[attributiXML[j]]);
}
msg[i] = nodi[i].firstChild.nodeValue;
}
delete mioxml;
creaArray(10);
} else {
datiGB.testo.htmlText = "
ATTENZIONE
Il file non è stato trovato";
}
};
}
letturaFile();
credo sia qllo in rosso il tuo problema prova.