Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drop down menu 2

Status
Not open for further replies.

BigBadDave

Programmer
May 31, 2001
1,069
EU
Just made it:


The options stay selected when clicked and the title text goes yellow etc etc

NOTE: It is a bit tempremental Regards
David Byng
spider.gif

davidbyng@hotmail.com
 
I have made it less tempremental by upping the return speed (it won't trigger 2 menus at the same time) Regards
David Byng
spider.gif

davidbyng@hotmail.com
 
I really like these menus. I am just starting to learn action scripting and I was wondering where you add links for the options to go to a new web page (and what the script would potentially look like). If you would let me know I would really appreciate it. Thanks!
 
On any of the buttons...

on(release){
getURL(" "_blank");
}

This will open a new window. To open the url in the same window as the menu, use "_self", rather than "_blank", as the second parameter.

Regards,

cubalibre2.gif
 
Thanks - I was leaving the quotes out of mine and I wasn't swift enough to figure that out on my own. I appreciate your help!
 
One more question:

I have the links taking me to a web page now, my only problem is that if I click on any of them individually they take me to all four pages from the menu. I will add my code below - is there a way to force these to just go to their own page? Thanks again (and sorry if thie is an ultra-basic question!)

onClipEvent(load) {
title.title = "Links";
menu1.opt1 = "AA.com";
menu1.opt2 = "CNN.com";
menu1.opt3 = "D204";
menu1.opt4 = "Test";
}
on (release) {
menu1.opt1 = getURL(" menu1.opt2 = getURL(" menu1.opt3 = getURL(" menu1.opt4 = getURL("
}
 
Just put one getURL per each on release action...
Code:
on (release) {
    getURL("[URL unfurl="true"]http://www.aa.com/","_blank");[/URL]
}



Regards,

cubalibre2.gif
 
oldnewbie - thanks for all of your help - I have one last question. I am trying to rebuild this just so I force an understanding of action scripting on myself and there is only one piece of his script I don't understand. When you mouseover the menu top you get the menu to drop down - with this code

onClipEvent (load) {
var triggerPoint = _y+82;
}
onClipEvent (enterFrame) {
if (hitTest(_root._xmouse, _root._ymouse) || _root._ymouse>triggerPoint && _parent.menu1.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop (2);
_parent.menu1.show = true;
} else {
gotoAndStop (1);
_parent.menu1.show = false;
}
}


I assume _parent.menu1.show = true makes that particular menu run bringing it down where we can see it. My question is why is it referred to as menu1? The movie clip that moves on the screen is just called menu and there are no other items named menu1. If you have any idea I would appreciate it. Thanks as always.
 
Thanks to both of you I have a much better understanding of this stuff than I did a few days ago. I appreciate the help and the really cool design. Thanks!

Neil
 
Hey.....!
How do you get this to work?

I've been screwing with this now for about 4 days - I tried to follow all of what was written above, but all I get is errors. Ive included ALL the diffent versions I've tried with this... but nothing I do has any effect - could someone get me on the straight and narrow on this?

______v.1___________


onClipEvent(load) {
title.title = "Menu 1";
menu1.opt1 = "Option 1";
menu1.opt2 = "Option 2";
menu1.opt3 = "Option 3";
menu1.opt4 = "Option 4";
}
menu1.opt1.on(release) {getURL(" "_blank");
}

______v.2___________


onClipEvent(load) {
title.title = "Menu 1";
menu1.opt1 = "Option 1";
menu1.opt2 = "Option 2";
menu1.opt3 = "Option 3";
menu1.opt4 = "Option 4";
}
menu1.opt1.on(release){
getURL(" "_blank");
}

______v.3___________


onClipEvent(load) {
title.title = "Menu 1";
menu1.opt1 = "Option 1";
menu1.opt2 = "Option 2";
menu1.opt3 = "Option 3";
menu1.opt4 = "Option 4";
}
on (release) {menu1.opt1 = getURL("}

______v.4___________


onClipEvent(load) {
title.title = "Menu 1";
menu1.opt1 = "Option 1"; menu1.opt1.onRelease = getURL(" menu1.opt2 = "Option 2";
menu1.opt3 = "Option 3";
menu1.opt4 = "Option 4";
}

idaryl
idface.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top