# Combining Kirupa Sliding Menu with Flash XML thumbnailer

**URL:** <https://forum.kirupa.com/t/combining-kirupa-sliding-menu-with-flash-xml-thumbnailer/233307>\
**Category:** flash\
**Created:** [July 22, 2007, 7:49pm UTC](https://forum.kirupa.com/t/combining-kirupa-sliding-menu-with-flash-xml-thumbnailer/233307 "2007-07-22T19:49:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![v\_real](https://avatars.discourse-cdn.com/v4/letter/v/9fc348/32.png) [@v\_real](https://forum.kirupa.com/u/v_real)\
**Post date:** [July 22, 2007, 7:49pm UTC](https://forum.kirupa.com/t/combining-kirupa-sliding-menu-with-flash-xml-thumbnailer/233307/1 "2007-07-22T19:49:45Z")

</div>

I want to make a gallery with a sliding effect of “[Kirupa Sliding Menu", but with an infinite menu which activated by buttons like in goto()'s "[URL=“http://www.kirupa.com/forum/showthread.php?t=266583”]Flash XML thumbnailer](http://www.kirupa.com/developer/flash8/slidingMenu.htm)”.  
So I combined these two, and tweaked it a little so the action of the “thumbnailer” button will trigger the change of pictures instead of opening links.

The problem is - the link variable is loaded from XML, and somehow I can’t transfer this variable to the “Sliding Menu” function.

When I hardcode the parameter of the “Sliding Menu” function, the sliding works fine:

```auto
newThumb.desc=root.childNodes*.childNodes[1].firstChild.nodeValue;
newThumb.link=root.childNodes*.childNodes[2].firstChild.nodeValue;
newThumb.cont.loadMovie(image);
newThumb.onRelease=function() {
    _global.btnLink = this.link;
    _root.menuSlide(_parent.contentHold.[COLOR=Red] **content2** [/COLOR]);
    //_root.menuSlide(_parent.contentHold.btnLink);
}

```

But when I define the function parameter to XML variable, the sliding doesn’t work:

```auto
newThumb.desc=root.childNodes*.childNodes[1].firstChild.nodeValue;
 newThumb.link=root.childNodes*.childNodes[2].firstChild.nodeValue;
 newThumb.cont.loadMovie(image);
 newThumb.onRelease=function() {
     _global.btnLink = this.link;
     _root.menuSlide(_parent.contentHold.[COLOR=Red] **btnLink** [/COLOR]);
     //_root.menuSlide(_parent.contentHold.content2);
 }

```

So, how can I set the path to my sliding content dynamically?  
Attached all related files.  
Any help will be greatly appreciated!  
Thanks in advance.
