|
|
|
#1 |
|
Senior Member
Join Date: Jul 2005
Posts: 114
|
AS2 / xml-gallery problem with html-text....
HI!
I have an AS2 gallery that loads a xml-file with URL:s to images and text for each image. The problem I have is to display the text as html-text. The reason is that I would like be able to have links in the text to other websites and using bold tags etc.. Below is some of the code & I think that this is where something needs to be changed? Code:
function caricaGallery () {
xmlFolder = "xml/";
path = xmlFolder + "gallery.xml";
var my_xml:XML = new XML ();
my_xml.ignoreWhite = true;
theImages = new Array ();
my_xml.onLoad = function (success:Boolean) {
if (success) {
base = my_xml.firstChild.childNodes;
for (m = 0; m < base.length; m++) {
theImage = new Object ();
theImage.url = base[m].childNodes[0].childNodes[0].nodeValue;
theImage.descrizione = base[m].childNodes[1].childNodes[0].nodeValue;
theImages.push (theImage);
}
creaImmagini ();
}
};
my_xml.load (path);
}
Code:
<immagini> <immagine> <path>away.jpg</path> <descrizione>description two</a></descrizione> </immagine> </immagini> Anyone has an idea how this can be solved...? All the best, Niklas |
|
|
|
![]() |
| Tags |
| gallery, html-text, xml |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|