# Xml menu

**URL:** <https://forum.kirupa.com/t/xml-menu/136678>\
**Category:** Uncategorized\
**Created:** [February 7, 2005, 5:59pm UTC](https://forum.kirupa.com/t/xml-menu/136678 "2005-02-07T17:59:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ewallace](https://avatars.discourse-cdn.com/v4/letter/e/76d3ee/32.png) [@ewallace](https://forum.kirupa.com/u/ewallace)\
**Post date:** [February 7, 2005, 5:59pm UTC](https://forum.kirupa.com/t/xml-menu/136678/1 "2005-02-07T17:59:49Z")

</div>

I am making an infinite menu that is fed by xml. my xml looks like this

\<images\>  
\<image\>  
\<path\>images/angel.jpg\</path\>  
\<url\>circle.swf\</url\>  
\<caption\>nr 1\</caption\>  
\</images\>

Right now when you click on the image the circle.swf is loaded in the movie.  
actionscripting is like this

this is where the images are loaded:

spacing = 0;  
boot = function () {  
for (var i = 0; i\<images.length; i++) {  
mc = container.attachMovie(“thumbMC”, “thumb”+i, i);  
mc.\_y = i\*(55+spacing);  
mc.path = images\*.path;  
mc.link = images\*.link;  
mc.name = images\*.caption;  
}

this is in the thumb mc movie, used to load the circle.swf:

loader.onRelease = function() {  
\_root.page.loadMovie(this.\_parent.link)  
}

What I want is when you click an image for two movies to load. I tried to accomplish this by adding another tag to my xml:  
\<images\>  
\<image\>  
\<path\>images/angel.jpg\</path\>  
\<url\>circle.swf\</url\>  
\<caption\>nr 1\</caption\>  
\<move\>text.swf\</move\>  
\</image\>

spacing = 0;  
boot = function () {  
for (var i = 0; i\<images.length; i++) {  
mc = container.attachMovie(“thumbMC”, “thumb”+i, i);  
mc.\_y = i\*(55+spacing);  
mc.path = images\*.path;  
mc.link = images\*.link;  
mc.name = images\*.caption;  
mc.move = images\*.move;  
}

loader.onRelease = function() {  
\_root.page.loadMovie(this.\_parent.link)  
\_root.text.loadMovie(this.\_parent.move)

This however did not work. I think it is my xml. Does anybody know whats going on? Is it possible to add another link to the images?
