pego los codigos tanto el action script como el xml
gracias
El AS2
Código:
this.importXML = new XML();
this.importXML.ignoreWhite = true;
this.importXML.onLoad = function(success) {
if (success) {
// pointer to the root node
var root = this.firstChild;
// fill in the multi-dimensional menu array
menuA = new Array();
for (var i = root.firstChild; i != null; i=i.nextSibling) {
menuA[menuA.length] = [i.attributes.name, i.attributes.image];
}
//Once the XML is loaded, build the bottom menu
buildMenu();
} else {
trace("ERROR loading xml");
}
};
this.importXML.load("gallery.xml");
El XML
Código:
<?xml version="1.0"?> <gallery> <photo name="Planta modelo 1020" image="0" /> <photo name="Planta Modelo 2040" image="1"/> </gallery>


