ActionScript 2.0 :: XML Drop Down Menu - Get The Submenus To Push The Rest Of The Main Menu Down On Rollover?
Mar 10, 2006
I have created an XML driven Drop Down menu using the kirupa tut by Senocular found here. I am trying to figure out how to get the submenus to push the rest of the main menu down on rollover kind of like this. Not sure where to start to get the AS to get the button created fromt he XML nodes to move down.I haven't changed the code found int he tut too much and the menu works fine except that the rollovers just go over the main menu.
I have been following and bastardising a computer arts tutorial for a dynamic flash site, its a really good tutorial and I'd like to keep going with that format/style, but I'm pretty new to the whole scripting thing and am finding it a bit of a headache, so was wondering if any kind souls would help me work out how to add submenus to the code below.the main menu button is a movie file(btn_projects_main) consisting of a button (button) and a text box(txt) and is 3 frames long to allow for the different states: What I'm looking for is a set of sub menus which load horizontally below the main menu buttons, here is the code which has been altered slightly (thanks to Ned Murphy for his help and patience with that)
// Setup some initial variables // Hide the button that will display a web link_root.theUrl._visible = 0; // Hide the image icons in the project loader// The image icons are simply there to make
Everything works fine but it seems but it seems that when I roll over the menu items the menu goes back up! It's just when your roll over the menu items it is actually leaving it the movieclip?
I am trying to build a website that uses the XML menu in kirupa tutorials. However, I am trying to customise it but I am having problems trying to solve this impossible task! Basically, instead of it being a drop down menu, I am trying to make the menu work on Click instead on RollOver. When the user clicks "on" a link, the link will keep an on state. And when the user clicks on the sub link, that sub link will keep an "on" state.
However, when the user selects a different menu item on the main level, the other "on" states will turn off. So basically I am trying to set up perhaps a variable that remembers which menu item is on and loops through the same level and automacally switches the other items off. Is that confusing? I AM!
I'm fairly new to actionscript and am trying to create an accordion menu that contains three submenus. The idea is that when you mouseover one submenu (or rectangle, to keep it simple) that the rectangles which were previously covering it will move to reveal it. If you want an idea of what I'm talking about, menus of this type can be found at the bottom of nvidia's[COLOR=blue ! important][COLOR=blue ! important][/COLOR][/COLOR] site ([URL]) for reference.
At first I tried creating each function, which will make the rectangles move, separately but this resulted in three very repetitive functions and there seemed like there should be a better way, especially since I'd like a good way to add and remove submenus. The animation did work then. I tried to clean it up by creating a for loop that would move each rectangle but now, for some reason, it doesn't work. It is still missing some key points such as utilizing the mOver variable to figure out when each rectangle is moused over Here is the code so far and the very sparse file is attached.
ive followed Senoculars drop-down menu tute [URL], awsome stuff, but it seems the submenu's dont disappear to well when you roll out. ..They only disappear if you click on another menu item or when you click outside the menu.
I've tried everything within my knowledge, searched the related posts but still can't find anything that works, this is what i have
[Code]...
I've tried replace stage with _parent, and _root and so on but I'm just stumped, been tryin to get this workin for over a week on and off already, still notta
I've created a rotating navigation menu with 4 parts/submenus. I'm having trouble of figuring the following:
1. To make the rotation/spinning graphics look smoother
2. On rollover of one of the submenu/movieclip (the rotation will stop and continue on rollout), it should hide/decrease the alpha of other submenus, so a rollover effect could be seen. I've already tried with this:
Code: _parent.MCInstanceName._alpha = 30;
But when on mouse rollout, the hovered submenu/movieclip does not continue to rotate.I've attached my source files if you guys want to have a look at it. Please help me, because I am pretty much a newbie at AS and I'm hitting a dead end.
Each time I make a drop down menu I face some problems, For example, when I use tweening to roll out a menu ( via ROLL_OVER/ ROLL_OUT), sometimes the menu gets stuck, or starts flickering after it is rolled out if I move the cursor away, and move back on it.
How could I solve this, should I use a timer to disable the button until the tween finishes (or this would be good for nothing)?
I need a tutorial for a hierarchical drop down menu system that drops down 3 sub levels. Do I make the items in the sub menus individual buttons and then insert them into a movie clip or make every sub menu item a movie clip and insert them into buttons?
I'm creating an animated (in and out) drop down menu. I've managed to get the menu to open when the user mouses over, with the buttons all selectable. However I can't seem to find an efficient method of making the drop down menu close whenever the mouse is not over the menu. Actions:
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.
(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 )
I have an array for my menu and submenus.It works fine, but I have to click again on the menu to close it.When it's open it's completly open it takes too much space.how I could make a menu close when I click on another menu item..this is the code on the frame on my main timeline:
I am looking at creating a menu with three movieclip buttons on a main menu. I want to keep these buttons on the top of the screen at all times. I am opening different swf's and I want to make sure that the buttons are still showing. I know there is something with changing or swapping the depth of the movie clip when it loads the new swf's in, but I have not found anything that is seeming to work.
I'm working on a web menu, that has sub menus. I'm currently trying to get the sub menu to jump back to the main menu if the mouse is no longer inside the submenu zone.
It works if I move the mouse quickly to another part of the Flash area, but if I quickly move it out of the Flash area and onto say the html document, it doesn't update fast enough, and thus still thinks the mouse is hovering over it.
I know I can simply update the movie frame rate which does work, but I was wondering if there is any way to get Flash to check to see if the mouse IS ACTUALLY ACTIVE over it, and if not close the submenu?
I'm creating a drop down menu and when I addEventListeners to check the clicks on the invisible buttons on frame 19 of the "menu" movieclip, it gives me an error. T really hate doing rollover with actionscripts. The download link for the fla can be found in below. Sorry for posting an external download link as the file is 7mb+! [URL]
I have an animated dropdown menu with 7 buttons. Each button slides down it's submenu.They're setup so that they open when you click them, but automatically close when you move the mouse out of the area of the given menu/submenu. If i permitted for more than one submenu to be open at a time, then size of the menu in total would be too big.Ok what I need is that, in plain language, when menu 1 is open - the rest is closed. But the menu 1 will close when you click menu 2, not before. OK, if my explanation was too lame here's the real thing, so you can get the idea of what i want:
i have template monster in flash an i customizing it i'm trying to add sub menu to the main menu i know how i can add it but my problem is how to direct the link in sub menu to page i want here's the fla file may be can find some [URL]
I have been searching posts for the last few days and I can't seem to narrow down my particular issue. I see lots of posts and threads related to swap depths but I can't seem to get it to work. I assume swap depths are what I need to do but I want to run the idea by you all. I have 5 mc each with an image and an animation, it's your basic zoom menu. all are on the same layer and all on one frame. what is the best way to get images to the front of the rest as I do a mouse over? right now the example script I am using is
I have created this site with a expanding / collapsin menu. When a user selects a menu e.g. "hammers" then the menu is loaded and show the submenues. When the users closes the menu by moving the mouse away from the area the menu collapses. If the user expands the menu again the menu should have remember the last visit menu and show the menu.
i want to add new Menu in flash IDE and i want to add inside the adobe flash menu. How i can add new menu in menubar and new menu item inside the help menu. is it possible to do this things if yes then which language i have to use for this. what is way to start development and what is the .MXP file and how to create this .MXP file.
The menu is like this http:[url]... (the site is in portuguese but it doesnt matter), when I click in on menu the actual menu does an alpha to 0 and the next menu appears using the alpha from 0 to 100 (and some animations like the cellphone going up).Now, how can I do a menu like that, whatever the menu I choose, it does that alpha animation ?
I have a flash menu and two scenes. The first one is preloader with this code:
import flash.events.ProgressEvent; function update(e:ProgressEvent):void {[code]....
The second scene is for menu.The problem is, when this menu is loaded i can push buttons several times, then it doesn't react at all, but when i reload the page, it works again..
Can somebody take a look at my .fla file and tell me why exactly my menu is not dropping down at all?If you download my file go to scene 3. that is where my Navigation Bar is.URL...
i have AS2 coded menu it's working xml but i can add 11 categories.if i add menu item show page out...i want menu item 11 later menu 12 menu 13 in bottom. sorry my english i add flash file and screen
I'm currently working on a flashsite and are trying to figure out rollover menu buttons. The site has 6 menu buttons and are placed next to each other. I want to put a rollover action on the buttons, that when you rollover a button that the whole button image enlarges and moves in front of the other.
I have a scroll over menu that works great (see code below) But I only want it to work when I scroll over the menu. Right now, it activates and scrolls even when I'm not hovering over the menu. My canvas is about 800x400 and the scroll over menu is only 200x350. I tried: on rollover disable but that did not work.
Quote:
stop(); ym = 5; //function to set the xpos of the movieclip function ypos(bar_length, mul) {