# Help with XML menu

**URL:** https://forum.kirupa.com/t/help-with-xml-menu/48468
**Category:** flash
**Created:** [April 13, 2004, 8:45pm UTC](https://forum.kirupa.com/t/help-with-xml-menu/48468 "2004-04-13T20:45:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![FlashPlaya](https://avatars.discourse-cdn.com/v4/letter/f/e274bd/32.png) [@FlashPlaya](https://forum.kirupa.com/u/FlashPlaya)
#### Post date: [April 13, 2004, 8:45pm UTC](https://forum.kirupa.com/t/help-with-xml-menu/48468/1 "2004-04-13T20:45:46Z")

</div>

Hello, I am building a nav with XML and I have it working but I am have probs with getting my swf’s to load. Here is the script part of the nav that create’s the action:

// – Execute Action -------------------------------

function executeAction(arg){  
// do load movie here: \_root.loadMovie(arg)  
display = arg;  
}

and here is the xml file:

\<menu\>  
\<item name=“ABOUT PETRA” arg=“galleryOne.swf”\>  
\<sub name=“WHAT SHE LIKES” arg=“what she likes”/\>  
\<sub name=“HOBBIES” arg=“galleryOne.swf”/\>  
\<sub name=“BLA BLA” arg=“bla bla.swf”/\>  
\<sub name=“BLA BLA” arg=“bla bla.swf”/\>  
\<sub name=“BLA BLA” arg=“bla bla.swf”/\>  
\<sub name=“BLA BLA” arg=“bla bla.swf”/\>  
\<sub name=“BLA BLA” arg=“bla bla.swf”/\>  
\<sub name=“BLA BLA” arg=“bla bla.swf”/\>  
\</item\>  
\<item name=“PICTURES” arg=“pics.swf”\>  
\<sub name=“PICTURES” arg=“pictures”/\>  
\<sub name=“BLA BLA” arg=“bla bla.swf”/\>  
\<sub name=“BLA BLA” arg=“bla bla.swf”/\>  
\<sub name=“BLA BLA” arg=“bla bla.swf”/\>  
\<sub name=“BLA BLA” arg=“bla bla.swf”/\>

```
&lt;/item&gt;

```

\</menu\>

you can see it here: [http://www.dyaddesigns.com/petra\_menu/petra.htm](http://www.dyaddesigns.com/petra_menu/petra.htm)

I tried putting \_root.loadMovie(arg) but it will not load the movie?  
I hope this makes sense.
