alert This appears to be a flash file, you cannot see a preview because flash player is no longer supoorted in browsers, but you can still download the file to study it's source code.
You can open/play the swf file with Flash Player exe
user nufase
nufase (4)

top nav rollover menu

Completely actionscript 3.0 driven.

Colour bars move up and down on MOUSE_OVER and MOUSE_OUT event listeners.

Speed of colour bars is controlled through a variable called "speedcontrol" at the very top of the actions in the first (and only) frame.

6783 downloads, 40159 views
Download (18.11 KB)

Comments

You need to login to post a comment.

user sac_ec17
sac_ec17 15 years ago

thank

user mariorr
mariorr 16 years ago

Please help, I cant link the menu options to the other pages.
Thanks

user delapuerta86
delapuerta86 16 years ago

Hi there, the file is great 10 out of 10. However, I just can't get any button to link up with any outside internet page. I have followed all the instructions here, but still no way to have buttons access other internet pages.

user zampotter
zampotter 16 years ago

thank you so much

user duncanp
duncanp 17 years ago

Helen 26..

Just to correct you.. first line should read:
homeButton.addEventListener(MouseEven t.CLICK, homeonClick);

Thanks :)

user aldsimoes
aldsimoes 17 years ago

I dont find function homeMouseOver (e:MouseEvent):void { in this article - download.

user stoiqa
stoiqa 17 years ago

Hy Nufase,
Not everyone knows action script3.Your menu is user friendly and easy to incorporate to our websites.Can you make the script where the links will go at least to :index1.html.....index5.hrml

I`m sure ffiles community will appreciate your effort.

Thank you

user michaelrown
michaelrown 17 years ago

wow!

user acebunny
acebunny 17 years ago

Thank You

user nufase
the listing author nufase 17 years ago

acebunny:

copy one of the existing 'buttons', paste it next in line. give it a new instance name, copy the code for the up and down animation and the event handlers, replace the instance name with the one you gave the new button.

you will have to change the dimensions of the stage so its wider to accommodate the new button.

user nufase
the listing author nufase 17 years ago

Helen26:

This menu was built in ActionScript 3.0. You cann;t place code on objects, you can only have code on frames in the timeline. I am glad you figured it out! EventHandlers are much more powerful then simple on(release) functions.

user acebunny
acebunny 17 years ago

How can you add a new button???? Help please in detail

user Helen26
Helen26 17 years ago

Just realised - change blank to self.

user Helen26
Helen26 17 years ago

Actually, this script treats every page as a pop-up, which probably isn't a great idea. Anyone else have any scripting suggestions? Thx

user Helen26
Helen26 17 years ago

Don't require help anymore. I can't believe I worked it out. If anyone else wants to know, within layer 6 add (for example):

homeButton.addEventListener(MouseEvent. CLICK, onClick);

(add this within the eventlisteners section for all buttons: i.e. for home, about us, etc..)


function homeonClick(evt:MouseEvent):void{
var u:URLRequest = new URLRequest
("index.html");
navigateToURL(u,"_blank");
}

add this to the functions section (for each button).

Hope this helps

user Helen26
Helen26 17 years ago

This menu is really great. I can't add links though to the script at all. Usually I would just add

on (release) {
getURL("index.html");
}

to each of the menu buttons, but because of the actionscript, It doesn't seem to allow me to put that in anywhere. Sorry to be a pain, but I'd really like to use this menu as I've integrated it into my site, but obviously can't use it if the links won't work. Thanks for your time. Hellie

user apearce
apearce 17 years ago

I love it, no links though.

user matthewkempster
matthewkempster 17 years ago

I like it

user jing1
jing1 17 years ago

10/10, vry nice