Visualizzazione dei risultati da 1 a 2 su 2

Discussione: nuova variabile

  1. #1

    nuova variabile

    ciao a tutti.... io sto utilizzando questo codice per prendere dei dati da un xml!!
    ---------------------------------------
    var array = new Array ();
    var xml = new XML ();
    xml.onLoad = function ()
    {
    var header, link;
    for (var i = 0; i < this.firstChild.childNodes.length; i++)
    {

    if (this.firstChild.childNodes[i].nodeName != null)
    {
    header = this.firstChild.childNodes[i].attributes.header;
    }
    for (var j = 0; j < this.firstChild.childNodes[i].childNodes.length; j++)
    {
    if (this.firstChild.childNodes[i].childNodes[j].nodeName == "link")
    {

    link = this.firstChild.childNodes[i].childNodes[j].firstChild.nodeValue;
    }
    }
    array.push (new struct (header, link));
    }

    printer ();
    };
    xml.load ("dbase.xml");
    --------------------------------

    ora dovrei aggiungere la variabile "img" che mi restituisce il percorso delle immagini da caricare poi in flash con il loadMovie!

    qualcuno sa come si fa?!
    grazie mille!!
    gigigi

  2. #2
    grazie.... risolto!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.