Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/10/2008, 11:00
Avatar de Ludwingg
Ludwingg
 
Fecha de Ingreso: diciembre-2002
Ubicación: San Salvador
Mensajes: 951
Antigüedad: 21 años, 4 meses
Puntos: 5
Respuesta: varias imagenes en xml en varios mc

En este momento no lo puedo probar, pero segun recuerdo es algo asi:
Código actionscript:
Ver original
  1. var mxml:XML = new XML();
  2. mxml.ignoreWhite = true;
  3. mxml.onLoad = function(cargo) {
  4.     if (cargo) {
  5.                 for(var i:Number=0; i<mxml.lenght; i++){
  6.                      mc.duplicateMovieClip("mc"+i, i)
  7.                      this["mc"+i].loadMovie(mxml.firstChild.childNodes[i].attributes.id);
  8.                      this["mc"+i]._x=mc._x+(i*(mc._width+1))
  9.                 }
  10.                 mc._visible=false
  11.     } else {
  12.     }
  13. };
  14. mxml.load("archivo.xml");
Espero haberlo escrito correctamente... suerte!