Visualizzazione dei risultati da 1 a 2 su 2

Discussione: Flash + Xml Help!!!!

  1. #1

    Flash + Xml Help!!!!

    Ciao a tutti, ho un serio problema che non riesco a risolvere, vorrei creare un lista di thumbnail con breve descrizione e linkarle a una pagina html
    questo è il codice actionscript in flash che carica i testi prendendoli dall' XML

    FLASH:
    // --
    news.autoSize = true;
    news.html = true;
    news.htmlText = "Loading XML";
    news.styleSheet = formatoCSS;
    // --
    var nNews:XML = new XML();
    nNews.ignoreWhite = true;
    nNews.load('news.xml');
    nNews.onLoad = function() {
    news.htmlText = "";
    qtd = this.childNodes[0].childNodes.length;
    for (i=0; i<qtd; i++) {
    var nTitolo = (this.childNodes[0].childNodes[i].childNodes[0]);
    var nTesto = (this.childNodes[0].childNodes[i].childNodes[1]);
    news.htmlText += "

    "+nTitolo+"</p>

    "+nTesto+"</p><font color='#999999'>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</font>
    ";
    }
    };

    XML:

    <?xml version="1.0" encoding="UTF-8"?>
    <menu>
    <item>
    <titolo>JENNIFER</titolo>
    <testo>ALTEZZA/HEIGHT: 1.78
    SENO/CHEST: 87
    VITA/WAIST: 63
    FIANCHI/HIPS: 92
    SCARPE/SHOES: 39
    EYES/OCCHI: marroni
    HAIR/CAPELLI: marroni
    </testo>
    </item>
    to piacere.</testo>
    </item>
    <item>
    <titolo>JENNIFER</titolo>
    <testo>ALTEZZA/HEIGHT: 1.78
    SENO/CHEST: 87
    VITA/WAIST: 63
    FIANCHI/HIPS: 92
    SCARPE/SHOES: 39
    EYES/OCCHI: marroni
    HAIR/CAPELLI: marroni
    </testo>
    </item>
    to piacere.</testo>
    </item>
    <item>
    <titolo>JENNIFER</titolo>
    <testo>ALTEZZA/HEIGHT: 1.78
    SENO/CHEST: 87
    VITA/WAIST: 63
    FIANCHI/HIPS: 92
    SCARPE/SHOES: 39
    EYES/OCCHI: marroni
    HAIR/CAPELLI: marroni
    </testo>
    </item>
    to piacere.</testo>
    </item>
    <item>
    <titolo>JENNIFER</titolo>
    <testo>ALTEZZA/HEIGHT: 1.78
    SENO/CHEST: 87
    VITA/WAIST: 63
    FIANCHI/HIPS: 92
    SCARPE/SHOES: 39
    EYES/OCCHI: marroni
    HAIR/CAPELLI: marroni
    </testo>
    </item>
    to piacere.</testo>
    </item>
    </menu>

    Vorrei che oltre al testo caricasse anche un'anteprima dell'immagine che si trova in una cartella Yhumb, ma non so come devo fare...
    spero di essere stato abbastanza chiaro.
    Grazie a tutti per l'aiuto...

  2. #2
    Utente di HTML.it L'avatar di and80
    Registrato dal
    Mar 2003
    Messaggi
    15,182
    fai chiudere la discussione su XML, che è fuori posto, oltre ad esser corssposting

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.