En este mc_thumbs hay el siguiente codigo:
Código :
import mx.controls.Loader;
var x = 0;
var y = 0;
var ancho = 50;
var alto = 30;
var num_columnas = 10;
// -- creo un nuevo objeto XML
miXML = new XML();
miXML.ignoreWhite = true; // -- ignorar espacios
miXML.onLoad = function(succes) {
if (succes) {
for (var i=0; i<this.firstChild.childNodes.length; i++) {
createClassObject(Loader, "loader"+i, this.getNextHighestDepth());
move(x, y);
setSize(ancho, alto);
contentPath = this.firstChild.childNodes[i].attributes.id;
x += ancho+5;
// -- incremento en 1 el número de columnas
columna += 1;
if (columna == num_columnas) {
columna = 0;
x -= (ancho*num_columnas);
y += alto;
}
}
}
};
// -- cargar XML
miXML.load("xml/olisthumbs.xml");Esta claro que esta mal... no me funciona, algquien me puede ayudar??
gracias.
[/code]
