Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Drop Down Menu Button


I made a simple dropdown menu in a movie clip. In that movie clip I have buttons. Those buttons will not jump to a selected scene, can Iget some help here?




ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 03-01-2002, 05:47 PM


View Complete Forum Thread with Replies

Sponsored Links:

Drop Down Button Menu
I have tried a few times to make a drop down button menu but they never work right
can someone please give me some instruction on how to make a drop down button menu?
thanx

View Replies !    View Related
Button Within And Drop Down Menu
Hi,

Need some help. I have a movie clip that when rolled over opens out into a drop down menu.

However I don't know why the button within that movie cannot be access. I am using the following code.

menu_mc.onRollOver = function () {
btn_mc.gotoAndPlay("one");
}

As my buttons have a rollover animation.

Many thanks.

View Replies !    View Related
Button In A Button Hover/drop Down Menu
I'm trying to do the following, it's for a mock up so really doens't have to be 100% professional functional.

i have a text type left navigation bar, when hovering over the link, i need it to display a sort of pop up( preview of next page) which is just an image but the image needs to remain when you are inside of it. it works if you make the "hit " of the button the same as down and over...but the problem with that is that when you go anywhere the image appears upon hover, it displays (not just when you hover over the links) i only need the "preview image "to go to one frame, so the internal words need not be clickable. i know this seems confusing, i'd be happy to send the .fla file to anyone willing to help.

View Replies !    View Related
Button DON'T WORK In My Drop Down Menu
i've been trying to figure this out. i found on this website site to try different scripts but none worked.
let me start from the beginning. i created a drop down menu and sub menus that slide out. everything works well, the cursor changes and everything over the button. with certain scripts different things happen but none are the right one. these are some that i tried and failed at:

"x" meaning frame number

gotoandplay(x) ->this one didn't work at all

gotoandplay("scene name",x) ->nothing happened

_root.gotoandplay(x) ->this one works when i test scene, but when i test movie it goes to my first scene. i have 3 scenes and the one with this drop menu is in scene 2.

so then i tried adding:
_root.gotoandplay("scene name", x) ->but this didn't change it. i thought adding the scene name it would know exactly where to go.

i also read somewhere to try:
_root.gotoandstop(x) ->but that didn't work either...

does anyone have any ideas with whats happening to me?

View Replies !    View Related
Drop Down Menu - Button Inside A Mc
Hello,

Here my problem: I have made a drop down menu that works fine (the animation). But when I whant to add a link to an item of the drop down menu it does not work (go to a frame label in the Scene 1).

The menu is a mc and each item of the drop down menu are buttons.

Here the script I have for now on each menu item inside the drop down menu:

on (release) {
gotoAndPlay ("Scene 1", "test");
}

What's my problem?
Please help me!
Thank you!

View Replies !    View Related
Hit Area For A Drop Down Menu Button
Hey folks

I have a button called "main" that when is pressed causes a menu consisting of three buttons ie "button1" , "button2" "button3"
to drop down (using masking)
and when the mouse rolls out of "main" ,
the menu goes back up

The problem is the when I press "main" and the menu appears , it goes back up as soon as i try to click or even move the cursor to any of the three buttons
(i.e button1 or button2 or button3 ) due to the fact that the mouse rolls out of "main"

I even inserted a hit area in the button "main"
that covers the area where the menu would be when dropped down but the problems persists even then

What should I do ?
Anakin

View Replies !    View Related
Drop Down Menu Button Not Working
Can someone pls help!!

I can't seem to make my drop down menu button work. whenever i roll over my button, the menu appears. but when i wanna move on to the sub buttons, it disappeared! if i put a "stop" at the last frame, it stops there when roll over. but when roll out, it doesn't disappear, its just stays there. how to make it appear when roll over, stays this way when going to sub button and disappear when roll out?

thkssssssss a million!!

View Replies !    View Related
Button Problem In Drop Down Menu
Following step-by-step instructions from a HOT manual, substituting my own button graphics from those supplied, I created a drop down menu. Problem is, when I click on one of the main manu buttons to reveal the sub-menu, all the other main menu buttons start blinking, repeatedly running through the up, over, down, hit modes.
What have I done wrong? Any ideas?
Thanks!

View Replies !    View Related
Question About A Drop Down Menu From A Button
I am designing a site for a small clothing store http://www.smithdavisclothing.com and under the shoes button I would like to have a drop down menu once it is moused-over. Can someone please p rovide a tutorial on this. Thank you!

View Replies !    View Related
Another Button/Menu/Drop Down Prob
Hello~ I wanted to make a button which actually drop down two other when I click on it, blinks when i m over it. I know how to create the "over" part, I create a button on a movieclip. correct?

The problem arise when i want to add another button(drop down button). It's quite complicated..

Imagine having two horizontal dropdownButtons, A&B.

In A, there's A1 and A2(which is the Xtra drop down).

This is wat i wanted, when i click A, A1&A2 appears, pushing B down, below A2.

something like a folder(A/B) and files(A2/B2) thing... get wat i mean?

Getting it right is more complex then i thought it is... or m i just making myself confused? I don't know...

If you know what i mean....
In my stage, i have a movie clip named drop. In drop, there is another movieclip(which acts like a button.)

Drop contain motion tween like, when click, it slides down, slides up again, and the other two MC(buttons) pop out.

I suppose that if i want to add Button B, I must add another DROP on stage right? But if that happens when i click A, it's almost impossible for me to slide the MC itself down.. Oh MY GOD... I m all screwed and messed up..

I have tried all ways i can, but still cannot get it.. If you have another way of doing, thing that my method is wrong, please let me know... i m havin sleepless nites on this... help me~

View Replies !    View Related
[AS] Drop Down Menu/Button Question
Hi,
Im trying to make a simple drop down menu, but an running into a stupid issue I cant seem to find a way around

Basicly I have a movie clip that has the on(rollOver) and on(rollOut) code applied. When I mouseover the mc it plays the open animation, and displays my sub buttons. When you mouseout it hides the sub buttons and plays the close animation. Pretty simple right?

The problem happens when you mouseout then mouse back over before the close animation completes. Its starts jumping between the beginning of the open animation, and the close animation.

Is there any way that I can set my buttons up to have a hit area or something thats just on/off instead of animated. Or some sort of other solution Im not thinking of?

If anyone is having troubles understanding what Im trying to say Ill try and post an example for you.

Thanks

View Replies !    View Related
Is IT Possible To Make A Drop Down Menu In The Button Scene?
I am trying to create a drop down menu in the button scene of a flas movie, is this possible, if so how, because I can't add any actions in the button scene.

View Replies !    View Related
Sound Toggle Button With Drop-Down Menu
Hello Everyone. As seen on the .swf file that I have included in this post, I am having trouble with the audio button at the bottom of the page. I want to make my red audio button at the bottom work correctly. So far, I am able to get the button to come down, but I can't get the button to stay down when I click the music off. Also, the button doesn't seem to remember the last setting once it returns to the carriage. It resets itself. Can you help me please? I can provide the .fla file via e-mail if necessary.

Thank you in advance.

Kelly

View Replies !    View Related
My First Drop Down Menu...button Wont Work.
Hey everyone, I am by no means an actionscript genius. I took a tutorial online to figure out how to do a drop down menu. It is all visually functional but when I click a sub-menu item it wont work.

For example, if I click the "company" tab on my website, there are 2 options: "about us" and "contact us". In my time frame we are sitting on frame 200. I have added the following actionscript to the "about us" sub-menu button:

on (release) {gotoAndPlay(201);
}

But when I test the movie and click the "about" sub-menu button, nothing happens?! Does anyone have any idea what I am doing wrong?

Any help is greatly appreciated.

Thanks.

View Replies !    View Related
Making A Button Interact With Drop Down Menu And Other Animations...
Anyone know what to put for a button to make a drop down menu roll back up? Does it have to do with "if"?

View Replies !    View Related
Goto Scene 2 By Clicking Drop Down Menu Button?
I'm fairly new at this, and this question may be dumb but I have created a drop down navigation (brands>babies, boys, girls, womens) on a flash site, and have created the babies page (Scene 2) but once a sub menu is clicked (babies) to advance to Scene 2, I just can't figure out how to make it work. I have a feeling it's because my button is a button within a movie clip that is the drop-down? Maybe I'm putting the script in the wrong place? But I've tried it in a few. . . Basically I just want to roll over the word brands, and be able to click on babies and go to Scene 2.

I appreciate any suggestions on how to make button within a drop down menu advance to a specified scene?. Thanks in advance.

View Replies !    View Related
Contact Form With Radio Button And Drop Down Menu?
Hello,

I am creating a simple form for a client. I will be sending data via php, I know how to send a regular form, but i have no clue how to include a few radio buttons and a drop down selection menu;( Can anyone please help me or point me in the right direction!!

here is what the form chould consist of:

- Name
- Company
- Address
- Telephone
- State
- e.mail
- I wish to receive specific information for: (drop down Menu)
>Video production
>Audio production
>Design
>Graphics
>Websites development

- I wish to receive "Studio Portfolio-CD"
- Yes [X] [ ] <--- Radio button

- Free text Area (comments!)



thnx
sean

View Replies !    View Related
Code Placement For Drop Down Menu Within An Animated Button
I have a main menu comprised of 7 buttons; 6 of which are all straight forward with an animation. (The animation is that when the buttons are rolled over the button extends itself out to the right. On the rollout the button returns to its original state.) The 6 all function fine.

The 7th menu button is the same idea but with the edition of a two button drop down menu that appears when the main button is rolled over. The roll over part is fine. My problem is moving the cursor off the main button to get to the sub-menu items without having them disappear once the cursor if off the main 7th button.

Within the time line of the 7th button (all of the buttons are movie clip buttons) I put an invisible button, removing the sections over both the main button and the sub buttons. I have tried the following:

(I should point out that the labels within the button for the animation are an _up, _over and _out states...the buttons animate out in the _over label and animate back to the original position in the _out label,)

The code and where I have (unsuccessfully) tried placing it are as follows:

1.) On the invisible button itself (within the main button):
on (rollOver) {
gotoAndPlay("_out");
}

2.) On the Actions layer (within the main button):
invisible_btn.onRollOver = function () {
gotoAndPlay("_out");
}

3.) On the Actions layer (on the main timeline...which is where the code for the other 6 buttons is and running as should):
btnMusic_mc.invisible_btn.onRollOver = function () {
btnMusic_mc.gotoAndPlay("_out");
}

4.) Just a slight variation of #3 (still on the Actions layer of the main timeline):
btnMusic_mc.invisible_btn.onRollOver = function () {
brnMusic_mc.invisible_btn.gotoAndPlay("_out");
}

The result for all four of these options has been the same. In rolling over the main button (btnMusic_mc) it does animate out as it should, exposing the two sub buttons. But moving the cursor off the btnMusic_mc neither allows me to reach the sub buttons nor does the btnMusic_mc animate back to its first position (as it should). It just snaps back into that position.

Clearly I am missing something here. Any thoughts would be appreciated.

View Replies !    View Related
Using Radio Button/drop Don Menu To Specify What Field Is Searched.
Hi there, gradually progressing with my searchable online database, one of the next things i want to do is to be a ble to specify which field in the database is searched . Ie at the mo it searched the list of films, but I want to be able to do a request for director, or the actors.

Any advice or links to tutorials that might help?

View Replies !    View Related
Rephrased Title: HELP, PLEASE-button 'down' Then 'up' In Drop Menu Link Area
I'm sorry for repeating the post, I just thought that the title might have confused everyone!

Hi,

The drop down menu I'm referring to is located in the main movie. The menu is a movie clip with the buttons inside and I have each button as 'track as menu item' in the properties. The buttons are linked to external swfs that load into an empty movie clip on the main stage. Everything loads perfectly no problem. The problem is that I can't seem to figure out the right code to put on the sub-menu items/buttons in the drop down menu to show the 'down' state when the corresponding movie is loaded (i.e., about-main button, philosophy [menu item], philosophy movie loaded). Then get it to go back to the 'up' state when another button is pressed in the same drop area part of the menu? I hope I explained myself clear enough without confusing anyone!

I would appreciate any help - I think I'm going to lose my mind - this is driving me crazy!!

Thanks - Alleen

View Replies !    View Related
Flash Drop Down Menu Like Fireworks Drop Down Menu
Is it possible to make a drop down menu in flash that drops down on top of html on the webpage? (i'm not sure how to describe this, what I mean is a drop down menu like the one used on Launch.com) I know this is possible in fireworks, but I want the buttons to have flash rollovers... is it possible to first off do this in flash or 2nd import my flash to fireworks and then make the drop down from there? If anyone could point me towards a tutorial or movie that does this that would be great. Thanks

View Replies !    View Related
Down State In Drop Down Menu-then Return To Up State When Other Button Is Clicked?
Hi - nice to meet everyone,

The drop down menu I'm referring to is located in the main movie. The menu is a movie clip with the buttons inside and I have each button as 'track as menu item' in the properties. The buttons are linked to external swfs that load into an empty movie clip on the main stage. Everything loads perfectly no problem. The problem is that I can't seem to figure out the right code to put on the sub-menu items/buttons in the drop down menu to show the 'down' state when the corresponding movie is loaded (i.e., about-main button, philosophy [menu item], philosophy movie loaded). Then get it to go back to the 'up' state when another button is pressed in the same drop area part of the menu? I hope I explained myself clear enough without confusing anyone!

I would appreciate any help - I think I'm going to lose my mind - this is driving me crazy!!

Thanks - Allee

View Replies !    View Related
Drop Down Menu PROBLEM-Down State For Sub-menu Item Linked To External SWFs?
Hi nice to meet everyone. The drop down menu I'm referring to is located in the main movie. The menu is a movie clip with the buttons inside and I have each button as 'track as menu item' in the properties. The buttons are linked to external swfs that load in the empty movie clip on the main movie stage. Everything loads perfectly no problem. I can't seem to figure out the right code to put on the sub-menu items/buttons in the drop down menu to show the 'down' state when the corresponding movie is loaded (i.e., about-main button, philosphy(menu item). When the 'philosphy' swf loads how do I get the 'philosphy' button that is in the main movie to show the 'down' state until another button is pressed on the menu? I hope I explained myself clear enough without confusing anyone!

Below is a sample of the code that I currently have on the the regular buttons that DO NOT sub-menu items:

on (release) {
gotoAndStop("home");
_root.contents.loadMovie("home.swf");
}

And here is the code that I currently have on the main buttons that have sub-menu items:

on (release) {
_root.contents.loadMovie("philosphy2.swf");
setProperty("_root.home", _visible, "0");
}

I have searched everywhere on the net, tutorials and still can't find the answer, I've been working on this for almost a week now and I just can't get it right.

Thanks again your help is greatly appreciated!

View Replies !    View Related
Drop Down Menu-Down State For Sub-menu Item Linked To External SWFs?
Hi nice to meet everyone. The drop down menu I'm referring to is located in the main movie. The menu is a movie clip with the buttons inside and I have each button as 'track as menu item' in the properties. The buttons are linked to external swfs that load in the empty movie clip on the main movie stage. Everything loads perfectly no problem. I can't seem to figure out the right code to put on the sub-menu items/buttons in the drop down menu to show the 'down' state when the corresponding movie is loaded (i.e., about-main button, philosphy(menu item). When the 'philosphy' swf loads how do I get the 'philosphy' button that is in the main movie to show the 'down' state until another button is pressed on the menu? I hope I explained myself clear enough without confusing anyone!

Below is a sample of the code that I currently have on the the regular buttons that DO NOT sub-menu items:


ActionScript Code:
on (release) {
    gotoAndStop("home");
    _root.contents.loadMovie("home.swf");
}

And here is the code that I currently have on the main buttons that have sub-menu items:


ActionScript Code:
on (release) {
    _root.contents.loadMovie("philosphy2.swf");
    setProperty("_root.home", _visible, "0");
}

I have searched everywhere on the net, tutorials and still can't find the answer, I've been working on this for almost a week now and I just can't get it right.

Thanks again your help is greatly appreciated!

View Replies !    View Related
Cant Make Apple Drop When Drop Button Is Clicked
alright so what im trying to do is make the apple drop when i click the button. but right now whenever i drag it and let go it falls when i let go. and another thing i want to do it make the timer restart when i click the drop button. thanks bye

go here for the fla.

View Replies !    View Related
Cant Make Apple Drop When Drop Button Is Clicked
alright so what im trying to do is make the apple drop when i click the button. but right now whenever i drag it and let go it falls when i let go. and another thing i want to do it make the timer restart when i click the drop button. thanks bye

go here for the fla.

View Replies !    View Related
Cant Make Ball Drop When Drop Button Is Clicked
alright so what im trying to do is make the apple drop when i click the button. but right now whenever i drag it and let go it falls when i let go. and another thing i want to do it make the timer restart when i click the drop button. thanks bye

go here for the fla.

View Replies !    View Related
Cant Make Ball Drop When Drop Button Is Clicked
alright so what im trying to do is make the apple drop when i click the button. but right now whenever i drag it and let go it falls when i let go. and another thing i want to do it make the timer restart when i click the drop button. thanks bye

go here for the fla.

View Replies !    View Related
Cant Make Ball Drop When Drop Button Is Clicked
alright so what im trying to do is make the apple drop when i click the button. but right now whenever i drag it and let go it falls when i let go. and another thing i want to do it make the timer restart when i click the drop button. thanks bye

go here for the fla.

View Replies !    View Related
How To: Create A Drop Down Menu With XML Data For Menu Items
Can anyone help by showing me or pointing me in the right direction of how I'd go about creating a drop down menu and populating the menu items from an XML file?

I'm creating a tour sort of thing and I have it pulling in the slides of the tour from an XML file and all the next/prev buttons are working fine. I wanted to add a drop down menu from the top that has the menu items pulling in from elements from the XML file. Possible? Ideas?

Thx

View Replies !    View Related
Menu Vs. Submenu Appearance : XML-Driven Drop-Down Menu Help
I love Senocular's XML-Driven Drop-Down Tutorial. But I can't seem to get it to make the menu headers look different from the submenus.

Any help?

See the tutorial

Much appreciated.

(and if anyone is interested, i've turned it into a horizonal menu... reply and i'll post the code. better yet, help me fix the GUI issue and i'll post it )

View Replies !    View Related
Flash Expanding Menu Instead Of Javascript Drop Down Menu?
I am trying to make a flash file that will take the place of a javascript drop down menu. I need to have a slim horizontal menu bar surrounded top and bottom by the rest of the HTML webpage.



The function of the flash menu would be such that when one of the buttons are moused over > the menu would expand over the HTML images below it with more menu buttons.



This is really easy to do with javascript but I want the creative freedom flash offers. Does anyone know how I can create a flash file that can expand larger than it’s original size on the webpage



I have seen some really neat flash banner ads that definitely are on top of other html. Maybe I could do something like that.



Please let me know any ideas or resources I could use to do this.



Thanks.

View Replies !    View Related
Senocular's XML Drop-Down Menu - How To Use Different Clips For Menu And Item?
I have been playing with the Senocular's tute on xml, and was wondering how i would implement one look for the menu items and one for the submenu's.

I tried doing if statements (if name attribute = name, the use a different clip) but that didnt seem to work.

Any ideas?

View Replies !    View Related
How To: Create A Drop Down Menu With XML Data For Menu Items
Can anyone help by showing me or pointing me in the right direction of how I'd go about creating a drop down menu and populating the menu items from an XML file?

I'm creating a tour sort of thing and I have it pulling in the slides of the tour from an XML file and all the next/prev buttons are working fine. I wanted to add a drop down menu from the top that has the menu items pulling in from elements from the XML file. Possible? Ideas?

Thx

View Replies !    View Related
Menu Vs. Submenu Appearance : XML-Driven Drop-Down Menu Help
I love Senocular's XML-Driven Drop-Down Tutorial. But I can't seem to get it to make the menu headers look different from the submenus.

Any help?

See the tutorial

Much appreciated.

(and if anyone is interested, i've turned it into a horizonal menu... reply and i'll post the code. better yet, help me fix the GUI issue and i'll post it )

View Replies !    View Related
Drop Menu With Toggle Menu Items
I am having an issue with the toggle state of a couple of buttons in a menu.
I have provided a simplified version of a menu system I am trying to build as a zipfile attachment.

the first menu is empty. For this demonstration it has no purpose but to move the main time line from from frame 1, to frame 2.

The second menu (on frame 3) turns off and on two movie clips that are loaded externally. I have no problem initially loading them, and no problem turning them off and on with the toggle switch's loadMovie and unloadMovie commands.

The problem comes when I've unloaded a movie using the toggle button in the second menu, then click on the first menu. When I've clicked on the 2nd menu again, the toggle switch isn't in the same state that it was last left in. I have no idea how to make it remember which state it was in.

Is there someway I could ask,
"If movie is not loaded, got to off state.
If movie is loaded, go to on state." ?

Here is a zip file with the FLA files and the external SWF's.

Here is the menu in action:
Click here

Please help if you can.

View Replies !    View Related
Scolling Menu With Drop Down Menu In Side
hey all im trying to design a site with a scrolling menu which will let you scroll from page to page also on each page there is a drop down menu. I was wondering how I would go about doing this. Thanks all for your help.

from Rublink182

View Replies !    View Related
Horizontal Scroll Menu With Drop-down Menu Over It
hey guys, i'm running MX 2004 pro.
here's what's going on:

i've got a horizontally-scrolling menu (in a movieclip) that is constructed similarly to the tutorial here: http://www.flashkit.com/tutorials/In...-815/index.php

in the same .fla, there is also a drop-down menu, that when down covers part of the scrolling menu. this, of course, triggers the scrolling menu. ideally, the scrolling menu would instead continue to scroll, and be unaffected by a user selecting an item from the drop down menu.

in the timeline, i have the following code pasted onto the instance of the horizontal scrolling menu:

onClipEvent (mouseMove) {
xmousepos1 = _xmouse;
ymousepos1 = _ymouse;
if (xmousepos1>xmousepos2 && ymousepos1>-45 && ymousepos1<60) {
_root.scrollclip.nextFrame();
}
if (xmousepos1<xmousepos2 && ymousepos1>-45 && ymousepos1<60) {
_root.scrollclip.prevFrame();
}
if (ymousepos1<-45 || ymousepos1>60) {
play();
}
xmousepos2 = _xmouse;
ymousepos2 = _ymouse;
}


how could i modify this so as not to be affected by the drop down menu? unfortunately, moving the position of the drop down is not an option.

thanks for reading and thanks for your time,
decerebrate

View Replies !    View Related
XML Drop Menu: Close Menu On Roll Out
Hi,

As I was working through this tutorial I noticed that once the submenu is open you have to click the button to close the submenu.

Any ideas on how to have the submenu close once you roll out of the hit area.

This may be counter-intuitive to the idea of the tutorial but I don't think I'll have any menus beyond the drop down.

Thnaks

Ponyack

View Replies !    View Related
XML Drop Down Menu That Populates A List Menu
I was wondering if anyone could help me out. I've taken a few tutorials and from different sites and customized them, but I'm still new to AS 3 and a bit scared of XML, arrays and loops. if anyone can tell me what im doing wrong, that would be excellent. I've attached the xml file as well.

thanks in advance.
-b

ps. if someone has a better way of doing this, i'm open to suggestions. thanks.


//Imports needed for animation
import fl.transitions.Tween;
import fl.transitions.easing.*;
import caurina.transitions.*;
import fl.data.DataProvider;

//Array used for the tween so they won't get garbage collected
var tweensArray:Array = new Array();
//Used later when we animate the buttons
var buttonTween:Tween;

var yOffset:Number;
var yMin:Number = 0;
var yMax:Number = scrollbox.sb.track.height - scrollbox.sb.thumb.height;


var leagueXML:XML = new XML();
var loader:URLLoader = new URLLoader();
var request:URLRequest= new URLRequest("league.xml");

loader.addEventListener(Event.COMPLETE,loaderOnCom plete);
loader.load (request);

function loaderOnComplete(event:Event):void{
leagueXML = new XML(event.target.data);

// Define an array
var league:Array = new Array({label:"Select a Conference",data:""});

// Loop through each video in XML
for each (var conf:XML in leagueXML.conf){
league.push({label:conf.name.toString(),data:conf. team.toString()});
}

// Add array to Combo Box
confCB.dataProvider = new DataProvider(league);
}


confCB.addEventListener(Event.CHANGE, changeHandler);

// Tell Flash what to do when an item in the ComboBox is clicked

function changeHandler(event:Event):void {
if(ComboBox(event.target).selectedItem.data != "")
{
//trace(ComboBox(event.target).selectedItem.data);
createMenu();
//trace(leagueXML.league.conf.team.toString());


function createMenu ():void {
//This will be used to represent a menu item
var menuItem:MenuItem;
//Counter
var i:uint = 0;

//Loop through the links found in the XML file
for each (var team:XML in leagueXML.league.conf) {

menuItem = new MenuItem();

//Insert the menu text (link.@name reads the link's "name" attribute)
menuItem.menuLabel.text = team.name;

//If the text is longer than the textfield, autosize so that the text is
//treated as left-justified text
menuItem.menuLabel.autoSize = TextFieldAutoSize.LEFT;

//Insert the menu button to stage
menuItem.x = 0;
menuItem.y = 0 + i*31;

//Make the button look like a button (hand cursor)
menuItem.buttonMode = true;
menuItem.mouseChildren = false;

//Add event handlers (used for animating the buttons)
menuItem.addEventListener (MouseEvent.MOUSE_OVER, mouseOverHandler);
menuItem.addEventListener (MouseEvent.MOUSE_OUT, mouseOutHandler);
menuItem.addEventListener (MouseEvent.CLICK, mouseClick);

//menu_container.holder_mc.addChild (menuItem);
scrollbox.content.holder_mc.addChild (menuItem);
//Increment the menu button counter, so we know how many buttons there are
i++;
}
if (i < 12) {
scrollbox.sb.visible=false;
scrollbox.x = 8.5;
}
}

View Replies !    View Related
Scolling Menu With Drop Down Menu In Side
hey all im trying to design a site with a scrolling menu which will let you scroll from page to page also on each page there is a drop down menu. I was wondering how I would go about doing this. Thanks all for your help.

from Rublink182

View Replies !    View Related
Horizontal Scroll Menu With Drop-down Menu Over It
hey guys, i'm running MX 2004 pro.
here's what's going on:

i've got a horizontally-scrolling menu (in a movieclip) that is constructed similarly to the tutorial here: http://www.flashkit.com/tutorials/In...-815/index.php

in the same .fla, there is also a drop-down menu, that when down covers part of the scrolling menu. this, of course, triggers the scrolling menu. ideally, the scrolling menu would instead continue to scroll, and be unaffected by a user selecting an item from the drop down menu.

in the timeline, i have the following code pasted onto the instance of the horizontal scrolling menu:

onClipEvent (mouseMove) {
xmousepos1 = _xmouse;
ymousepos1 = _ymouse;
if (xmousepos1>xmousepos2 && ymousepos1>-45 && ymousepos1<60) {
_root.scrollclip.nextFrame();
}
if (xmousepos1<xmousepos2 && ymousepos1>-45 && ymousepos1<60) {
_root.scrollclip.prevFrame();
}
if (ymousepos1<-45 || ymousepos1>60) {
play();
}
xmousepos2 = _xmouse;
ymousepos2 = _ymouse;
}


how could i modify this so as not to be affected by the drop down menu? unfortunately, moving the position of the drop down is not an option.

thanks for reading and thanks for your time,
decerebrate

View Replies !    View Related
How To Add Drop Down Menu To This Slider Menu
Hi All,

I need to add a drop down menu to the main menu button called "galleries".

The menu came from one of the awesome kirupa tutorials here, and below is a link to my existing menu w slider:

http://www.innova-techsolutions.com/...8_18_05_bu.htm

When I try to add a popup menu to "galleries" to the over state in galleries, the popup menu dissappears when you rollover the first item.

Here is the .fla, click on gallery, and open up popup_but to see what I've done in the "over" state:

http://www.innova-techsolutions.com/flashgroup.fla

This if my first flash site, and I long over schedule, so I'd sure appreciate any help w this.

Thanks,

Art Hans

View Replies !    View Related
Menu Slider With Drop Down Sub-Menu's
I've downloaded the sourcefile for a standard menu slider. How do I now include the ability for it to have drop down sub-categories under each menu heading?

All help will be greatly appreciated.

Lisa

View Replies !    View Related
XML Drop Down Menu: How To Hide Sub Menu?
Could anyone shed some light on how to hide the sub-menu on mouse out on the tutorial by Senocular?

http://www.kirupa.com/developer/acti...down_menu7.htm

Thanks in advance,

Dan

View Replies !    View Related
Drop Down Menu Help
I've got a movie clip set up with a button on frame one that says "Section 2" on the same frame is a command to "stop." When the mouse moves over the "Section 2" button, the movie clip timeline continues playing, and reveals 4 other buttons. How do I make it so that when you leave the area of those buttons ("Section 2" & Sub-Section 1 - 4), the movie clip returns and stops on frame 1. Is this possible? PLEASE HELP!

Thanks!
AJ
chocochipp@aol.com

View Replies !    View Related
Drop Down Menu
I've been through the tutorials and can't seem to figure out how to get it to work. I followed Adam Weeks tutorial to the T and I still couldn't get it to work right. Although, messing about with the code helped me to figure out how to drag stuff around on the stage so that was a major plus (have been trying to do that since I started with flash).

If anyone can help I'd appreciate it. If I figure it out myself I'll let you know. I'm going to try it again.

Anita
http://apotterdd.150m.com/

View Replies !    View Related
Drop Down Menu
Can any one help me... I want to know how to create drop-down menus and also how can I make a dropdown menu with a movieclip in it.

View Replies !    View Related
Drop Down Menu
I am sure you all know the menus that open on mouse over then close on roll out what i was trying was one that slowly scrolled down but all so scrolled up but this is where i get stuck.

1: I dont want it to "Jump" back to the close look on mouse over

2: I all so dont want it to jump to open and then start to close if it is not all the way open when you mouse off

3: not to shut when you mouse over the menu buttons

sorry for the long list it is mainly 1 and 2 i need help with any ideas?

View Replies !    View Related
Drop Down Menu
All right everybody!

I have a menu smart clip that has about 25 states in it. When it drops down it extends the length of my Flash movie. Is there any way to set default to maybe 12 states appear at a time and have the rest scroll so it is manageable. Here is the code in my smart clip...

onClipEvent (load) {
myArray = new Array("Arizona","Alabama","California","Florida"," Georgia","Illinois","Indiana","Louisiana","Massach usetts","Michigan","Minnesota","Missouri","New Jersey","New York","Maryland","North Carolina","Ohio","Oklahoma","Oregon","Pennsylvania ","South Carolina","Tennessee","Texas","Utah","Virginia","W ashingtonDC","Wisconsin");
this.items = myArray;

function onMenu (item, label) {
labelArray = new Array("home","Arizona","Alabama","California","Flo rida","Georgia","Illinois","Indiana","Louisiana"," Massachusetts","Michigan","Minnesota","Missouri"," New Jersey","New York","Maryland","North Carolina","Ohio","Oklahoma","Oregon","Pennsylvania ","South Carolina","Tennessee","Texas","Utah","Virginia","W ashingtonDC","Wisconsin")
val = labelArray[item]
_root.theClip.gotoAndStop(val);
}
}

Does anyone have any ideas, I really do not want to break up this and say states a-m here and states n-z there....

Any ideas will be greatly appreciated.

Thanks,

Joe

View Replies !    View Related
A Drop Down Menu Box?
Is it possiable to have a drop down with lets say 20 buttons:

Button a
A Button
B button
Button b
etcc..
z button

If a user hits the Z key, the drop done menu will auto. goto the location of the z button????? I have the buttons in a mask. Any help please.

Thanks,

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved