# Finished my Nav Menu

**URL:** https://forum.kirupa.com/t/finished-my-nav-menu/8021
**Category:** flash
**Created:** [November 12, 2002, 5:41pm UTC](https://forum.kirupa.com/t/finished-my-nav-menu/8021 "2002-11-12T17:41:31Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Sorcerer](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Sorcerer](https://forum.kirupa.com/u/Sorcerer)
#### Post date: [November 12, 2002, 5:41pm UTC](https://forum.kirupa.com/t/finished-my-nav-menu/8021/1 "2002-11-12T17:41:31Z")

</div>

I finally finished my dynamic navigation menu and it actually works. I’d like to thank everyone that helped me out. I am also attaching the fla to this post incase anyone wants to see how I did it or wants to use the menu.

I have added a lot of comments to the top explaining what the constants, variables and functions are/do but most of the code I’ve left un-commented. If you have any questions on how or why I did something let me know.

---

<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: [November 12, 2002, 5:49pm UTC](https://forum.kirupa.com/t/finished-my-nav-menu/8021/2 "2002-11-12T17:49:01Z")

</div>

Cool one Sorcerer. 🙂

---

<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: [January 4, 2003, 9:20am UTC](https://forum.kirupa.com/t/finished-my-nav-menu/8021/3 "2003-01-04T09:20:12Z")

</div>

It looks great, however it’s also buggy. I found when testing the movie (without any alteration) that by expanding Button 7, then 6, then 5, etc… parts would just fall off. You’ll see what I mean when you try.

Great menu though!

---

<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: [January 4, 2003, 9:25am UTC](https://forum.kirupa.com/t/finished-my-nav-menu/8021/4 "2003-01-04T09:25:08Z")

</div>

are you sure its perfectly fine when i tried it…?!

---

<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 11, 2003, 10:09pm UTC](https://forum.kirupa.com/t/finished-my-nav-menu/8021/5 "2003-04-11T22:09:27Z")

</div>

Is there a way to take the links in this menu and make it so it loads a movie clip into the current movie? instead of sending the user to another url?

---

<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 12, 2003, 1:56am UTC](https://forum.kirupa.com/t/finished-my-nav-menu/8021/6 "2003-04-12T01:56:45Z")

</div>

Yes, you just need to replace the getURL code on the button and sub button to do what you want.

---

<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 19, 2003, 3:10pm UTC](https://forum.kirupa.com/t/finished-my-nav-menu/8021/7 "2003-04-19T15:10:13Z")

</div>

Hello,

I try it all the menus worked fine.  
I don’t like the link to URL on the main buttons.

Cheers,

Billy

---

<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 21, 2003, 10:27pm UTC](https://forum.kirupa.com/t/finished-my-nav-menu/8021/8 "2003-05-21T22:27:53Z")

</div>

Hi,

Very cool menu system! :thumb:

I have a question similar to Zephn’s - instead of getURL would I use something like loadMovie or loadMovieNum to load into a container movie clip?

Also, would the dropdown menu get incorporated into the main fla or be added as it’s own swf?

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: [May 22, 2003, 1:18am UTC](https://forum.kirupa.com/t/finished-my-nav-menu/8021/9 "2003-05-22T01:18:24Z")

</div>

I have another question as well. I noticed you have this on your TopButton movie clip:

getURL(eval("\_root.TopTarget"+TargetNum),eval("\_root.TopTarget"+TargetNum+“Frame”));

What would I use instead if I’m only loading external swfs and not linking to urls?

And if I may ask another . . . :beam:

What goes in the targets on the action in the main page? As in:

TopTarget3 = “mysite.html”; TopTarget3Frame = “”;

TopTarget3Sub0 = “mysite.html”;  
TopTarget3Sub0Frame = “”;

etc.

---

<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 22, 2003, 7:30am UTC](https://forum.kirupa.com/t/finished-my-nav-menu/8021/10 "2003-05-22T07:30:03Z")

</div>

Nice. I am attempting something similar and I need a little help, if you get the chance Sorceror. I’d like mine to have submenus within submenus…

its not quite working

---

<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 22, 2003, 6:49pm UTC](https://forum.kirupa.com/t/finished-my-nav-menu/8021/11 "2003-05-22T18:49:29Z")

</div>

For lunatic try replacing the getURL with something like this

loadMovieNum(eval("\_root.TopTarget"+GrpNum), eval("\_root.TopTarget"+GrpNum+“Frame”));

then the top target variables will be the path to your swf to load and the top target frame will be the level to load into. Then make the same kind of change to the sub buttons.

As far as where to load the movie, the way it works now is it will have to set on the root because I designed it to run stand alone on a webpage it uses \_root as a reference for almost everything. If you want to change it you’ll need to change every place it says \_root.

clown what exactly is the problem you are having?

---

<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 22, 2003, 8:46pm UTC](https://forum.kirupa.com/t/finished-my-nav-menu/8021/12 "2003-05-22T20:46:55Z")

</div>

Hi Sorcerer,

Well, it didn’t quite work. Sorry, I’m something of a newb and a lot of your code is over my head, but I’d really like to get this to work so I can apply it to a project I’m doing.

LoadMovie seems to work better than LoadMovieNum although even with LoadMovie the external swfs are popping up in their own window instead of in the container I put on the main stage. Right now I’ve got this on the Top Button:

```php

loadMovie(eval("_root.TopTarget"+TargetNum), eval("_root.TopTarget"+TargetNum+"Frame"));

```

and this on the main timeline action layer:

```php

TopTarget0 = ""; TopTarget0Frame = "";
TopTarget0Sub0 = "button.swf";	
TopTarget0Sub0Frame = "container";

```

I tried “\_root.container” also but it does the same thing.

Also, do you know what causes the main button disappear when the subs are shown? Really I don’t even need the main buttons to be buttons - just categories for the sub buttons.

Thanks for all your help!

---

<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 22, 2003, 9:00pm UTC](https://forum.kirupa.com/t/finished-my-nav-menu/8021/13 "2003-05-22T21:00:44Z")

</div>

oops, actually, I DID get it to work with loadMovie and a container. Duh, my mistake, I totally forgot about the code on the sub group. I’m still having problems though with the top button (main button) disappearing after the first time it is clicked.

Eep! Any suggestions? 🙂

---

<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 24, 2003, 10:25pm UTC](https://forum.kirupa.com/t/finished-my-nav-menu/8021/14 "2003-05-24T22:25:35Z")

</div>

Hey Sorcerer, can you think of a reason why my arrow won’t turn when the movie is tested?

Also, any reason why the sub menu labels aren’t displaying?

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 27, 2003, 6:32pm UTC](https://forum.kirupa.com/t/finished-my-nav-menu/8021/15 "2003-05-27T18:32:03Z")

</div>

not off the top of my head, it’s been a while since i’ve worked on this, if you want to post your fla i could take a look at it when I get some time.

---

<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 28, 2003, 12:29am UTC](https://forum.kirupa.com/t/finished-my-nav-menu/8021/16 "2003-05-28T00:29:55Z")

</div>

Thanks sorcerer!

Fla is posted at:

www.humboldt.edu/~mgk9/fla.zip

I fixed the problem with the arrow. I’m still having problem with the labels on the subs. Doesn’t makes sense since it’s part of the same loop as the main buttons and those label fine.

The other problem I’m having is placing it where I want on the stage. No matter where I move it it defaults to the upper left corner. I would love for it to align to the top of the big map (as it is in the fla). Any ideas?

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 28, 2003, 8:19pm UTC](https://forum.kirupa.com/t/finished-my-nav-menu/8021/17 "2003-05-28T20:19:37Z")

</div>

Seems the problem was with your button, I deleted it and created a new one and it worked. I also went through and added everything inside a movieclip i named menu. Now you should be able to move the movie around and not have any problems.

---

<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 28, 2003, 9:35pm UTC](https://forum.kirupa.com/t/finished-my-nav-menu/8021/18 "2003-05-28T21:35:52Z")

</div>

Hi Sorcerer,

I tried copying your Menu movie clip onto my stage and it crashes my document! ☹

Any other suggestions?

Thanks for your help.

---

<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 29, 2003, 6:31pm UTC](https://forum.kirupa.com/t/finished-my-nav-menu/8021/19 "2003-05-29T18:31:21Z")

</div>

works fine when I copy it, make sure you get rid of the menu code in your actions layer, the code should all be inside the new movie clip, and make sure it is named Menu.

---

<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 29, 2003, 9:58pm UTC](https://forum.kirupa.com/t/finished-my-nav-menu/8021/20 "2003-05-29T21:58:54Z")

</div>

Yeah, I did that and it still doesn’t work. :-\

Sorry to be such a pain in the \*\*\*\*\* but now the SubUp function doesn’t work and I still don’t get any sub labels. When I tried your fla (forlunatic) just on it’s own the SubUp function didn’t work either. Weird huh? What am I missing? I copied the Menu movie clip as is, as well as the actions on the Sub and Top buttons (there were a few new variable names) and still nothing. I reposted the fla at:

www.humboldt.edu/~mgk9/fla.zip

with the Menu movie clip. If you get a moment would you mind taking a look at it again? Or anyone else out there want to take a peek?

Thanks again! 😛
