# XML menu

**URL:** <https://forum.kirupa.com/t/xml-menu/212946>\
**Category:** Uncategorized\
**Created:** [January 15, 2007, 9:55pm UTC](https://forum.kirupa.com/t/xml-menu/212946 "2007-01-15T21:55:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alpharaven](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@alpharaven](https://forum.kirupa.com/u/alpharaven)\
**Post date:** [January 15, 2007, 9:55pm UTC](https://forum.kirupa.com/t/xml-menu/212946/1 "2007-01-15T21:55:24Z")

</div>

i used the XML picture gallery found in this website. Now what I want to do is instead of the thumbnails I want to create a menu on the side that gives me a description of what the picture is. When the user clicks on the text it will load the image like it would normally. Here is what I have

```auto
function amelist() {
    this._parent.contents.txt.htmlText = "";
    trace(description[(j-1)].substr(0, 15));
    for (var j = 1; j<=total; j++) {
        this._parent.contents.txt.htmlText += "<a href='asfunction:picgetter'>"+j+". "+description[(j-1)].substr(0, 15)+"</a><br>";
    }
}
//
_global.picgetter = function() {
    if (p<=0) {
        picture["pic"+p]._alpha = 0;
        picture["pic"+p].loadMovie(image[p], picture["pic"+p].swapDepths(picture.getNextHighestDepth()));
    }
};

```

Thanks and I hope I was clear enough.
