Mi da un errore!!!
Questo era il codice originale:
Codice PHP:
this.importXML = new XML();
this.importXML.ignoreWhite = true;
this.importXML.onLoad = function(success) {
if (success) {
var root = this.firstChild;
menuA = new Array();
for (var i = root.firstChild; i != null; i=i.nextSibling) {
menuA[menuA.length] = [i.attributes.name, i.attributes.image];
}
buildMenu();
} else {
trace("ERROR loading xml");
}
};
this.importXML.load("gallery.xml");
e questo è il codice modificato:
Codice PHP:
this.importXML = new XML();
this.importXML.ignoreWhite = true;
this.importXML.onLoad = function(success) {
if (success) {
var root = this.firstChild;
menuA = new Array();
for (var i = root.firstChild; i != null; i=i.nextSibling) {
menuA[menuA.length] = [i.attributes.name, i.attributes.image];
}
buildMenu();
} else {
trace("ERROR loading xml");
}
};
filexml = "gallery.xml";
this.importXML.load(filexml + "? rnd=" + random(999999));
Mi da questo errore:
codice:
ERROR loading xml
Errore durante l'apertura dell'URL 'file:///D|/Documenti/FLASH/Gallerie/Jgal01/gallery.xml? rnd=590554'
Ho provato anche a togliere lo spazio tra ? e rnd= , ma niente.
Dove sbaglio?