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