Código:
Muchas Gracias. #include "mc_tween2.as" x = 3; y = 3; ancho = 105; alto = 80; num_columnas = 6; miXML = new XML(); miXML.ignoreWhite = true; miXML.onLoad = function(succes) { if (succes) { for (var i = 0; i < this.firstChild.childNodes.length; i++) { thumb = this.firstChild.childNodes[i].attributes.id; holder_mc = createEmptyMovieClip("holder_mc" + i, i + 100); item = holder_mc.createEmptyMovieClip("diapo" + i, i + 100); item.loadMovie(thumb); holder_mc._x = x; holder_mc._y = y; holder_mc.url = this.firstChild.childNodes[i].attributes.url; holder_mc.onRollOver = function() { this.alphaTo(60, .25, "easeOutQuad"); }; holder_mc.onRollOut = function() { this.alphaTo(100, .25, "easeOutQuad", .1); }; holder_mc.onRelease = function() { getURL(this.url); }; x += ancho; columna += 1; if (columna == num_columnas) { columna = 0; x -= (ancho * num_columnas); y += alto; } } } }; miXML.load("imagenes.xml");