Hi
I have implemented the Kirupa 'Photo Slideshow Using XML and Flash' and I want to be able to add a line break to the description. (By the way, I'm pretty much a beginner with actionscript ATM) So far, all the usual things don't work (<br>,
, <p>, CDATA, etc) in the XML file and, yes, I have switched the formfield to HTML in the flash file. Ideally, I’d like to add another line in the XML file and add to the actionscript in the fla file to do this. The code I need to edit is as follows:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
description* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
}
firstImage();
} else {
content = "file not loaded!";
}
}
I’m guessing it involves the adapting the childNodes, but I am still learning how to do all this, so I’m a bit in the dark. I hope someone can help…
Thanks in advance,
Mat