Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/10/2006, 12:51
Avatar de Fastlane
Fastlane
 
Fecha de Ingreso: febrero-2004
Ubicación: ElSalvador
Mensajes: 43
Antigüedad: 20 años, 2 meses
Puntos: 0
Sera que debo hacer varias veces esto?
Cita:
x=10;
y=18;

ancho=105;
alto=75;

miXML = new XML();
miXML.ignoreWhite = true;
miXML.onLoad = function(succes){

if(succes){
for(var i = 0; i<this.firstChild.childNodes.length; i++){
galeria = this.firstChild.childNodes[i].attributes.id;
_root.createEmptyMovieClip("diapo"+i, i+100);
item = _root["diapo"+i];
item.loadMovie(galeria);
item._x = x;
item._y = y;
x += ancho;
columna += 1;

if(columna == num_columnas){
columna = 0;
x -=(ancho*num_columnas);
y += alto;
}
}
}
};
miXML.load("imagenes.xml");