Con qualche difficoltà sono riuscito ad arrivare al file .fla (dove non riuscivo a capire niente), e col tasto F9 ho visto tutti i codici delle azioni, ho trovato la parte dove parla del file XML (l'unica che sono riuscita a trovare), mi potete dire se è qui che devo modificare il codice per far caricare ogni volta lo stesso file XML, ma con variabili diverse, così da ingannare la cache e far risultare ogni volta le modifiche? Oppure sto totalmente sbagliando strada? HELP ME!
codice:
stop();
var arrMenu:Array = new Array();
var arrItem:Array = new Array();
//
function loadXML(loaded) {
if (loaded) {
var xmlRoot = this.firstChild;
_global.galleryNo = xmlRoot.childNodes.length;
for (m=0; m<galleryNo; m++) {
_global.items = 4;
arrMenu.push(xmlRoot.childNodes[m].attributes.name);
for (i=0; i<items; i++) {
var descString:String = unescape(xmlRoot.childNodes[m].childNodes[i].childNodes[1].firstChild);
//Uppercase Main Title
var xString1 = unescape(xmlRoot.childNodes[m].childNodes[i].childNodes[0].firstChild);
var my_xml1:XML = new XML(xString1);
var my_node1:XMLNode = my_xml1.childNodes[0];
var titleString = my_node1.toString().toUpperCase();
//
var imageString = xmlRoot.childNodes[m].childNodes[i].childNodes[2].firstChild;
var linkString = xmlRoot.childNodes[m].childNodes[i].childNodes[3].firstChild;
arrItem.push(new Array(titleString, descString, imageString, linkString));
}
}
gotoAndStop("start");
} else {
trace(xmlFile+" not loaded!");
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlFile = "slideShow.xml";
xmlData.load(xmlFile);