Yes, I have idea how you can make that navigation bar: - with your brain and hands, and using knowledge of ActionSript.
We could help you if we knew what part of work is difficult for you. Otherwise "help me" means "make for me".
Can you show what you've already made?
Sorry, what I ment is -
How could I make a button that when you hover on it, it will reveal other "sub-buttons" and will keep showing them until you will hover above a different "main button" - the same scenery that you see on "macromedia.com" website - that's what I ment...
I would make a "sub-buttons" movieclip with its content (the sub-links) on frame 2. On rollOver of the main button i would send that "sub-buttons" movieclip to frame2 and back to frame1 onRollOut of the "sub-buttons".
gparis
Yeah! But what's interesting in the Macromedia navigation, is the delay on the sub-menu disappearing only after some time, if you hover quickly over the main buttons. Never seen someone come up with such a script yet!... Maybe a Xmas challenge for an actionscript specialist?
I don't know about you, but I can see delay.
So I'll wait for gparis', sunshineyos and others judgment.
And I know for sure that you would not make anything similar ever.
Well we're either not talking about the same delay, or your's is much shorther. I'm talking about the delay in the appearance of the submenu when you go from one main item button to another, not the delay it the disappearing of the submenu after you've moused off a main item button...
onClipEvent(load){
//is the cursor over the movie clip
previouslyOver=false;
}
onClipEvent(enterFrame){
currentlyOver=this.hitTest(_root._xmouse,_root._ym ouse,true);
//if there is a change, go to another frame
if(!previouslyOver and currentlyOver){
previouslyOver=true;
this.gotoAndPlay("on");
//when the sub menu apaer
} else if (previouslyOver and !currentlyOver){
previouslyOver=false;
this.gotoAndPlay("out");
//when the animation of the submenu fade out
}
}
Poor, poor oldnewbie... Try to open macromedia nav_bar with decompiller (if you can) and compare it with my file. You'll understand (if you can) or at least you'll see that these two files have nothing in common except its appearance.
I forget to say that if you wish to increase the delay, you should just write in your number in the 31-st line of the code. Here:
28 pod_menu(name_kn);
29 }
30 clearInterval(id);
31 }, 200, this);
Make it for instance 800
I am always relaxing unless somebody tries to accuse me that I use the decompilers to look smarter than I am.
I am unlike you able to make something.
Have a good X-mas.
Not only submenu URLs don't work but main URLs don't work as well.
It was not my goal to make exactly macromedia nav bar with working buttons. It was just a draft of some kind of the nav bar. I just wanted to show how we can make the delay.
If we want to make URLs work, we should define these URLs and attach it to buttons.
There is a simple example as how we can do this. Try it.
Make a new movie and copy this code in the first frame of the timeline.