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...

Rispondi quotando