# Xml menu DONE :)

**URL:** <https://forum.kirupa.com/t/xml-menu-done/97959>\
**Category:** Uncategorized\
**Created:** [January 1, 2004, 4:03am UTC](https://forum.kirupa.com/t/xml-menu-done/97959 "2004-01-01T04:03:11Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 6, 2004, 10:46am UTC](https://forum.kirupa.com/t/xml-menu-done/97959/21 "2004-04-06T10:46:21Z")

</div>

Syntax, sorry I cant help you mate, I’m travelling and have no access to flash at the moment…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2004, 9:19am UTC](https://forum.kirupa.com/t/xml-menu-done/97959/22 "2004-04-08T09:19:22Z")

</div>

hi hga77, thanks very much for posting this menu.

i’m an xml newbie, so bare with with me, but i don’t see where the code is that actually creates the  
menu graphics. there doesn’t seem to be any code in the main timeline that references any of the movie clips.

all of the mc’s you’ve included seem to serve a purpose, except for the menu mc, which is blank. what’s its purpose? and what am i missing here? i’m using flash mx, is it not displaying something?

thanks in advance.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2004, 10:24am UTC](https://forum.kirupa.com/t/xml-menu-done/97959/23 "2004-04-08T10:24:25Z")

</div>

‘menu mc’ serves a very important purpose. Without this mc, the menu would be nothing…

It holds the main part of code for the menu. Select the ‘menu mc’ and open the actions panel…you will see the code

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2004, 6:59pm UTC](https://forum.kirupa.com/t/xml-menu-done/97959/24 "2004-04-08T18:59:25Z")

</div>

No problem dude,

I’ve found some of the answers myself…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2004, 8:38pm UTC](https://forum.kirupa.com/t/xml-menu-done/97959/25 "2004-04-08T20:38:48Z")

</div>

hi hga77, i’ve opened up every iteration of this file you’ve posted. and in all of them, ‘menu’ is an empty movie clip – no key frames, no AS. do you have any idea why this info wouldn’t be showing up?

thanks again.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2004, 9:48pm UTC](https://forum.kirupa.com/t/xml-menu-done/97959/26 "2004-04-08T21:48:59Z")

</div>

Im sorry bustr but I have no clue why you cant see anything :-/

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 5, 2004, 3:13pm UTC](https://forum.kirupa.com/t/xml-menu-done/97959/27 "2004-05-05T15:13:44Z")

</div>

::Hey hga77

I was just checking out the menu, it is very cool. I was also trying to get the menu to load a swf or url. I looked back through the different posts and found someone else was trying to do the same, and I downloaded the file that you set up with url and non url. I for some reason could not get it to load a swf, i dont know if i was missing something or not.

All that happens is in my output window it says url or nonurl, it doesnt actually get the url or swf.

rL::  
:azn:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 5, 2004, 4:01pm UTC](https://forum.kirupa.com/t/xml-menu-done/97959/28 "2004-05-05T16:01:56Z")

</div>

You’ve gotta go into the code and make sure that you uncomment the area that says non-url. I don’t remember what part it’s attached to, but it’s there. It’s close to the top, so it’ll be hard to miss.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 5, 2004, 4:58pm UTC](https://forum.kirupa.com/t/xml-menu-done/97959/29 "2004-05-05T16:58:25Z")

</div>

thanks, I sort of knew that had something to do with it but i didnt figure out were to find it, until after you told me to look for it.

thanks

rL

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 5, 2004, 5:24pm UTC](https://forum.kirupa.com/t/xml-menu-done/97959/30 "2004-05-05T17:24:13Z")

</div>

np…ask and ye shall receive! 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 25, 2004, 5:49pm UTC](https://forum.kirupa.com/t/xml-menu-done/97959/31 "2004-05-25T17:49:40Z")

</div>

nice menu hga77!

i have a two part question to add to this excellent thread:

1 – i’d like to have all the subItems open when the menu is initialized and turn off the submenu accordian effect (expanding when clicked). basicly, all the items + subItems would be visible all the time. how would i accomplish this? i tried playing with the actionscript on the menu MC, but couldn’t figure it out…

2 – also, i have two types of links in the menu: gotoAndPlay and getURL. would both of these go under [COLOR=DarkGreen]function executeAction(action)[/COLOR] on line 3 of the menu MC? if so, could you provide an example?

[COLOR=DarkRed][EDIT] – okay; i added both functions to the .as:

```auto
    function executeAction(action)
    {
		  _root.gotoAndStop("action");
    }
    function executeAction(url)
    {
		  getURL( url, "_blank");
    }

```

the getURL works, but not the gotoAndStop…not sure what i’m doing wrong…[/COLOR]

thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 25, 2004, 6:01pm UTC](https://forum.kirupa.com/t/xml-menu-done/97959/32 "2004-05-25T18:01:56Z")

</div>

For request 1.) you dont need this menu at all to do that. Thats just a regular menu you can create with buttons in your movie. Just indent your submenus right?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 25, 2004, 6:12pm UTC](https://forum.kirupa.com/t/xml-menu-done/97959/33 "2004-05-25T18:12:41Z")

</div>

> [@niki](#):
>
> For request 1.) you dont need this menu at all to do that. Thats just a regular menu you can create with buttons in your movie. Just indent your submenus right?

hi niki. almost…i like some of the additional functions. also, i’m going to use the same style menu with varying links throughout the site. so, its more efficient for me if everything is automated in the .as and the links are defined within the xml.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2004, 8:04pm UTC](https://forum.kirupa.com/t/xml-menu-done/97959/34 "2004-05-26T20:04:42Z")

</div>

hey man. Looks good. But you have set the unzip wrong. The XML and FLA have to be in the same directory, you put them in two seperate ones. just get rid of the XML stuff directory. Good work though!  
Mith  
Edit. I like your idea. I did one too, with an XML feed, and it to dynamicalyl attaches stuff. Strange how we had the same idea, different code… Great minds DO think alike, lol 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 27, 2004, 10:47am UTC](https://forum.kirupa.com/t/xml-menu-done/97959/35 "2004-05-27T10:47:30Z")

</div>

hey Mith, its not wrong to have the xml file in a separate folder. The reason why I have it this way is because I always end up having many separate xml files doing different stuff for a single website, hence I put them all in a folder called “xmlStuff”. Its good to be organised 😉

bonzai, how’s the work going?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 27, 2004, 3:26pm UTC](https://forum.kirupa.com/t/xml-menu-done/97959/36 "2004-05-27T15:26:45Z")

</div>

> [@hga77](#):
>
> bonzai, how’s the work going?

hi hga. still stuck…not sure what to do about question 1. i added the extra function for question 2, but the gotoAndStop action isn’t working for some reason. :-/

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 27, 2004, 7:36pm UTC](https://forum.kirupa.com/t/xml-menu-done/97959/37 "2004-05-27T19:36:53Z")

</div>

i c, thats kewl. 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 16, 2004, 2:00pm UTC](https://forum.kirupa.com/t/xml-menu-done/97959/38 "2004-06-16T14:00:11Z")

</div>

ur welcome 🙂

Its always good to hear from mr. K himself 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 16, 2004, 2:01pm UTC](https://forum.kirupa.com/t/xml-menu-done/97959/39 "2004-06-16T14:01:37Z")

</div>

guys i’m very sorry about being slow with answers, i’ve been very busy recently. But I promise I will get back to everyone 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 16, 2004, 2:02pm UTC](https://forum.kirupa.com/t/xml-menu-done/97959/40 "2004-06-16T14:02:20Z")

</div>

cheers hga77, no problem.

[Previous page](https://forum.kirupa.com/t/xml-menu-done/97959.md?page=1)

[Next page](https://forum.kirupa.com/t/xml-menu-done/97959.md?page=3)
