el codigo del flash es:
Código :
var prof:Number = 0;
createEmptyMovieClip("noticias", prof++);
noticias._x = 0;
noticias._y = 0;
function carga_XML() {
menu = new XML();
menu.load("listado.xml");
menu.referencia = this;
menu.onLoad = interprete;
menu.ignoreWhite = true;
}
function interprete() {
menuArray = menu.firstChild.childNodes;
var y:Number = 0;//posicion del mc contenedor y
var x:Number = 100;// pos x de los thumbs
var i:Number = 0;
for (i=0; i<6; i++) {
noticias.attachMovie("clip", "clip"+i, prof++, {_x:x*i, _y:y, foto:menuArray[i].attributes.Foto, grande:menuArray[i].attributes.GRANDE}); // hace las x primera fila
noticias.attachMovie("clip", "clip2"+i, prof++, {_x:x*i, _y:(y*i)+82, foto:menuArray[i+6].attributes.Foto, grande:menuArray[i].attributes.GRANDE}); //2ª fila
noticias.attachMovie("clip", "clip3"+i, prof++, {_x:x*i, _y:(y*i)+164, foto:menuArray[i+12].attributes.Foto, grande:menuArray[i].attributes.GRANDE});// 3ª
//noticias.attachMovie("clip", "clip4"+i, prof++, {_x:(x*i), _y:(y*i)+300, foto:menuArray[i+6].attributes.Foto});//4ª
}
}
carga_XML();
y el xml:
Código :
<?xml version="1.0" encoding="utf-8" ?> <noticias> <noti Foto="lentes_ch/1.jpg" GRANDE="lentes_gr/1.png"/> <noti Foto="lentes_ch/2.jpg" GRANDE="lentes_gr/2.png"/> <noti Foto="lentes_ch/3.jpg" GRANDE="lentes_gr/1.png" /> <noti Foto="lentes_ch/4.jpg" GRANDE="lentes_gr/1.png" /> <noti Foto="lentes_ch/5.jpg" GRANDE="lentes_gr/1.png" /> </noticias>
les agradezco muchisimo la ayuda que me puedan dar
Saludos
