duplico un mc in base ai nodi dell' XML.
assegno ad ogni nodo un valore in un array ..

ma come la chiamo poi?

codice:
  if(success){
    // mostriamo nel campo di testo solo
    // il primo nodo figlio del file xml
	var y = 1
	var nodes = this.childNodes
	var quale = new Array()
	//var quale = this.childNodes[x].childNodes[1].firstChild
		for (var x = 0; x < nodes.length; x++){
			//duplicazione
			_root.download_mc.target_mc.attachMovie("ticker_mc","down_mc"+(x+1),(x+1))
			_root.download_mc.target_mc["down_mc"+(x+1)]._x = 10
			_root.download_mc.target_mc["down_mc"+(x+1)]._y = 10 + (y)
			quale[x] = this.childNodes[x].childNodes[1].firstChild
			//trace(_root.download_mc.target_mc["down_mc"+(x+1)].quale)
			_root.myLoadedMovie.loadClip("http://localhost/Simedia/Image/" + this.childNodes[x].firstChild.firstChild + ".jpg", _root.download_mc.target_mc["down_mc"+(x+1)].loader_mc);
			_root.download_mc.target_mc["down_mc"+(x+1)].ticker_txt.text = this.childNodes[x].firstChild.firstChild
			//trace (_root["down_mc"+(x+1)].download)
			y = y + 90
			//trace(this.childNodes[x].childNodes[1].firstChild)
			_root.download_mc.target_mc["down_mc"+(x+1)].pulsante_btn.onRelease = function(){
				//_root.caricaTesto("http://localhost/Simedia/Asp/DETTAGLI.asp?ID=" + _root.download_mc.target_mc["down_mc"+(x+1)].quale + "&LG=" + LG)
				trace(quale[x])
			}

		}
	} else {
    trace ("caricamento errato");
  }
};
myXML.load("http://localhost/Simedia/Asp/PRODOTTI.asp");
}
In pratica se chiamo quale[x] mi da undefined, ma se chiamo quale[1 oppure 2] mi da il valore esatto, quindi l' array viene popolato ... ma come faccio a chimare nel pulsante[x = 1] quale[1] ??

:di56: