Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/04/2009, 16:58
Avatar de Lynxcraft
Lynxcraft
 
Fecha de Ingreso: noviembre-2007
Ubicación: yecla murcia
Mensajes: 1.346
Antigüedad: 18 años, 10 meses
Puntos: 51
Respuesta: Necesito una ayuda con xml

no se si esto es lo que quieres pero espero que te ayude XDXDXD
Código PHP:
mxml.onLoad = function(succes:Boolean) {
    if (
succes) {
        for (var 
i = 0; i<this.firstChild.childNodes.length; i++) {
            var 
item:MovieClip = fotos_mc.createEmptyMovieClip("diapo"+i, i+100);
            
item.loadMovie(this.firstChild.childNodes[i].attributes.id);
            
item._x = x;
            
item._y = y;
            
x += ancho;
            
columna += 1;
            if (
columna == num_columnas) {
                
columna = 0;
                
x -= (ancho*num_columnas);
                
y += alto;
            }
            var 
mi_description:TextField= item.createTextField("descipcion",this.getNextHighestDepth(),0,item._height-20,100,22);
            
mi_description.border = true;
            
mi_description.type = "input";
            
mi_description.text=this.firstChild.childNodes[i].attributes.texto
            
        
}
    }
};

mxml.load("datos.xml"); 
__________________
Sobran las ideas cuando faltan ganas de trabajar en ellas
Lynxcraft