Creating Links with XML and Actionscript - Kirupas XML PG

Here’s my scenario…

I have a flash PhotoGallery that loads pictures automatically. The images are being pulled from an XML file. I’d like to include the links that images go to in the <link>link to ad page</link> tag and then I need to have my flash movie make the image a clickable link.

in essence, in HTML, it would look like this:

<a href="blahsomelink.html"><img src="blahsomeimage.gif" border="0"></a>

but I have the xml file which looks like this:


so i need the. jpg link to the .html file.

The actionscript calls this xml info:

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;

what would i need to lookup and research to get this working properly?

Thanks for the time and help!