# Convert XML node into button on scrollable panel

**URL:** <https://forum.kirupa.com/t/convert-xml-node-into-button-on-scrollable-panel/107268>\
**Category:** Uncategorized\
**Created:** [April 13, 2004, 9:04pm UTC](https://forum.kirupa.com/t/convert-xml-node-into-button-on-scrollable-panel/107268 "2004-04-13T21:04:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alwaysdrifting](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@alwaysdrifting](https://forum.kirupa.com/u/alwaysdrifting)\
**Post date:** [April 13, 2004, 9:04pm UTC](https://forum.kirupa.com/t/convert-xml-node-into-button-on-scrollable-panel/107268/1 "2004-04-13T21:04:43Z")

</div>

Hey folks,

I’m still stuck with this scrollable menu problem. I hope someone can please help me out because this project is due on Friday.

Ok, I have no problem reading the data in the XML file and assigning it to arrays. A line from the file looks like, [COLOR=Navy]\<gallery name=“Chicago” url=“0.xml” GalleryDescription=“0.txt”/\> [/COLOR]

Therefore, each node represents a photo gallery. Here is where I am having problems, I need to convert each node into a button or a link and have it in a scrollable pane. Therefore, I want to make the name(i.e. Chicago) a click able link. I then need each button to have code like,

on (release) {  
gotoAndPlay(“menustop”);  
\_global.galleryinfo = [COLOR=Red]Variable For GalleryDescription[/COLOR];  
\_root.contents.loadMovie("[COLOR=Red]URL variable[/COLOR]");  
}

Ok, I hope this makes sense. I appreciate your help.  
Brian
