http://www.compilador.net/2009/12/galeria-de-imagenes-con-xml-en-flash.html
me anda barbaro, lo unico que le hice fue sacarle el tema de los titulos las imagenes las carga sin problemas, pero me gustaria que se me redimensione a cierto tamaño, o que se adapte al contenedor.
[email protected]:
Código ActionScript :
import mx.transitions.Tween;
import mx.transitions.easing.*;
//cremos los arrays para almacenar datos del xml
var urls:Array = new Array();
var titulos:Array = new Array();
var current:Number;
//Establecer tamaño del movieclip folder
holder._width = 632;
holder._height = 486;
var x:XML = new XML();
x.ignoreWhite = true;
x.onLoad = function(success) {
var photos:Array = this.firstChild.childNodes;
for(i=0;i<photos.length;i++) {
urls.push(photos[i].attributes.url);
}
holder.loadMovie(urls[0]);
current = 0;
}
x.load("imagenes.xml");
previous.onRelease = function() {
if(current > 0) {
current--;
holder.loadMovie(urls[current]);
alphaTw = new Tween(holder, "_alpha", Regular.easeOut, 0, 100, 7, false);
}
}
next.onRelease = function() {
if(current < urls.length-1) {
current++;
holder.loadMovie(urls[current]);
alphaTw = new Tween(holder, "_alpha", Regular.easeOut, 0, 100, 7, false);
}
}Si alguien me puede echar una mano, se lo agradeceria.
Gracias de antemano.
