lo qu pasa es que me ha pasado algo inusual....antes me servia ese código
en el stage, hay un text field con instancia captions, y un mc con instancia holder, y este es el código:
Código ActionScript :
var x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
var captions:Array = new Array();
x.onLoad = function(success) {
var photos:Array = this.firstChild.childNodes;
for(i=0;i<photos.length;i++) {
urls.push(photos[i].attributes.foto);
captions.push(photos[i].attributes.nombre);
var spacer:Number = 50;
var newY:Number = i * (holder._height + spacer);
holder.duplicateMovieClip("holder" + i, i, {_y:newY});
loadMovie(urls[i], "holder" + i);
caption.text = captions[i];
}
}
x.load("lost.xml");la gracia es que me muestre la información de este xml:
Código XML :
<?xml version="1.0" encoding="ISO-8859-1"?> <index> <trabajo nombre="Andes" foto="lost1.jpg"/> <trabajo nombre="Av. Boyacá" foto="lost2.jpg"/> <trabajo nombre="Andes" foto="lost3.jpg"/> <trabajo nombre="Av. Boyacá" foto="lost4.jpg"/> </index>
pero solo me muestra uno
Gracias!
