Finished my Nav Menu

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.

Cool one Sorcerer. :slight_smile:

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!

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

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?

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

Hello,

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

Cheers,

Billy

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!

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.

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

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?

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:


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

and this on the main timeline action layer:


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!

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? :slight_smile:

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!

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.

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!

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.

Hi Sorcerer,

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

Any other suggestions?

Thanks for your help.

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.

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! :stuck_out_tongue: