# HTML link in XML

**URL:** <https://forum.kirupa.com/t/html-link-in-xml/279270>\
**Category:** flash\
**Created:** [January 12, 2009, 3:09pm UTC](https://forum.kirupa.com/t/html-link-in-xml/279270 "2009-01-12T15:09:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattpooch](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@mattpooch](https://forum.kirupa.com/u/mattpooch)\
**Post date:** [January 12, 2009, 3:09pm UTC](https://forum.kirupa.com/t/html-link-in-xml/279270/1 "2009-01-12T15:09:10Z")

</div>

I’ve got a few areas where I’m displaying XML driven content in Flash. I’d like then to be able to have links shown as well so the user can continue to navigate the page. How do I add an HTML link in the XML so that it displays properly in Flash? Does something need to be added to the ActionScript or is it all done in the XML?

Sample **ActionScript** code is below:

```auto
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!";
    }
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("http://www.whatever.com/flash/xml/story_images.xml");

```
