Io ho 3 frame
Questo è il primo:
codice:
myXML.unload();
myXML = new XML();
myXML.ignoreWhite = true;
myXML.load("TestoPagine/ChiSiamo.xml");
myXML.onLoad = ParseXML;
testi = [];
function ParseXML () {
testo = myXML.firstChild.childNodes;
for(x=0;x<testo.length;x++)
testi[x] = "" +
testo[x].attributes.TitoloChiSiamo + "
" +
testo[x].firstChild.nodeValue.split("\r").join("");
}
descrizione = 0;
this.onEnterFrame=function(){
total = int(myXML.getBytesTotal());
download = int(myXML.getBytesLoaded());
if (total == download) {
_root.nextFrame;
}
}
Il secondo è un estensione del primo
e il terzo è questo
codice:
stop ();
AutoScroller.url = testi[descrizione];
AutoScroller.gotoAndPlay(6);
xx = descrizione+1;
yy = testi.length;
if (descrizione==0) back._visible = false;
else back._visible = true;
if (descrizione==testi.length-1) forw._visible = false;
else forw._visible = true;
Cosa sbaglio? Perchè mi compare troppo spesso undefined anzichè la pagina...?
Ciao!