ActionScript 3.0 :: Making A Navigation With A Submenu
Sep 29, 2009
how to make a navigation with a disappearing submenu to the right with actionscript? Basically, you can roll over a button and a submenu for that button appears to the right and the buttons below is slide down a bit. Then when you roll off of the button or the submenu.. the submenu disappears and the buttons below slide back up.
I just finished creating a large online flex app with 43 different screens. I am using a mx:MenuBar with four main menus and a couple of submenus to navigate between these screens.I am now trying to convert this into a iPad app as well, but the mx:MenuBar does not appear to be supported in mobile flex. Is there any way I can replicate this sort of navigation system in mobile flex? The user needs to be able to move between any of these pages at any time, and 43 tabs will obviously not work
Any tutorial for a simple vertical navigation menu with a submenu. Like a drop down menu but vertical where the main links are on the left and the submenues come out the right side of the menu. I don't need any bells and whistles and I am just learning so it doesn't need anything but a button link when rolled over more link options appear to the right. Is there a tutorial that is not a place trying to sell me this capability and actually works (CS3), no errors, broken links etc...just a how to for a simple menu with submenus.
I started creating a simple navigation bar: [URL] But decided to make individual buttons: [URL]
As you can see the latter repeats, however the code (after about an hour checking it seems to be identical: Actions for frame one: _root.buy_mc.onEnterFrame = function() { if (mouse_over_buy_mc) { _root.buy_mc.nextFrame(); } else { _root.buy_mc.prevFrame(); }};
Actions for invisible button: on (rollOver) { _root.mouse_over_buy_mc = true; } on (rollOut) { _root.mouse_over_buy_mc = fstartlse; }on (release){ getURL("[URL]"); }
I'm making an xml slideshow width 2 navigation arrows. I have loaded either the xml and the images. The problem is this: in the first frame i have a movieclip called "foto1" in which i load the first photo and underneath this i have another movieclip called "foto3". I load the two photos and i fade "foto1" to "foto3". after i'm going to the second frame in wich i have "foto3" and underneath this "foto1". I've loaded "foto3" but when the movie go to the second frame "foto3" contains nothing.
I am trying to create a simple menu bar with 3 levels of sub buttons,what i done is :- created many movieclip buttons, with rollovering them get other movie clip (subbutons), at first it seem working but at third level of subbutons i faced problem: i can rollover only twice same button and after that all submenu's automatically gone and i cant understand why..
i'm reverse engineering an actionscript based site for one of my clients. so, i've got this problem... i asked a question earlier and got a response that has led me to this one...i have an array:
I've made a scrollpage of pictures and I've added a submenu under the page. What I ask for is there a way to link one of the buttons on the submenu to navigate you to a certain place (up or down) on the scrollpage? It must have something to do with the Y property I think, for the site to move up or down to a certain point.Here's the scrollpage: http:[url].....
And here's the fla. file: http:[url]......I've thought about it and tried many different methods without any luck.
creating a Nav with a submenu. Basically it needs to work like this: When you roll over the first button.. the two buttons below it slide down a bit and 4 buttons appear below that.. this needs to stay visible as long as you are rolled over the main button or the submenu.. I can't seem to get the events right.
What is the best way to keep a sub menu visible? The way I have it coding, is onRollOver the menu button, the sub menu is displayed. I want the submenu to disappear onRollOut of the entire menu... how would you do this?
I am migrating from AS2 to AS3 and realize the button functionality is totally different. I have a website with buttons that have submenus. I have the first layer of buttons working. They have eventListeners attached that take them to a labeled frame on the timeline. When you get to that labeled frame there is a submenu of buttons there. I tried putting the code for those buttons in the same script on frame 1 but it messes up the movie.
I think it has something to do with the buttons not actually being there on frame 1 when the script is read. I cannot figure out where to put the script for the submenu buttons to make them work. I think I have to put a parent type script in there. Sorry I dont even know what to look up.
Here is the link to the site: [URL]
Here is the code on frame 1:
Code: stop(); function goCollections(e:MouseEvent):void { gotoAndStop("collections");
I created a text on stage, converted it to a movieclip the created the necessary submenu in the frames. It works up to that point but the link that is placed in the main scene wont execute...
How can I make sure a menu button name appears in a different colour when it is selected and stays that colour until the user navigates to another page?Example: My menu buttons have a dark brown font. I have changed the font colour to red on the 'down' state of the button setting. This means the users clicks on a menu, e.g. Gallery and the Gallery button turns red briefly. However, it doesn't stay red which is what I want.
I have a menu that starts with doors opening. Then inside there I have movieclips for each drop down menu I have. This is the code i have for the submenus to play:
I have a simple vertical xml menu layed out and would like to know how to create submenus that appear below the selected entry and move all other menus down to compensate.[URL]
I have a flash header on a client's site that was done and I'm trying to edit the links on the submenu for camps can't seem to find the code to edit the links and take away a link.
I really don't know half of what I'm doing when it comes to Action Script 3. Through a lot of trial and error, I finally have my menu with submenus displaying properly, but just not functioning the way that I have intended. The submenu items appear when a mouse over registers on the mainmenu item. The submenu mouse rollovers are registering correctly because the right content is displayed and the alpha channel changes are registering. The problem is with the mouse clicks for the submenu items. I don't understand why but a mouse click on a submenu button is registering as a click on the mainmenu item, not the submenu item. Could someone please explain to me why the rollover function is working and not the mouse click, and what I need to do to fix my code? I hate to admit it, but I am really clueless here.And here is the relevant part of my code:
I have a file with 4 movieclips on the main timeline. 2 of the clips (home_btn, benefits_btn) are used as buttons with rollovers, submenu, etc. The other 2 clips (home_mc, benefits_mc) are basic content. What I've been trying to do for a couple days now is to link from a submenu button (benCor1_btn, not a mc btn) inside benefits_btn to a frame label inside a mc (benefits_mc, "b1"). I've attached my FLA file for some to look at my code and tell what the heck I'm doing wrong.
So here is the question, I'm trying to make a dropdown menu (DESIGN) with submenus (INTERIOR) (EXTERIOR) etc...But when i finnaly completed the dropdown script and i started linking (interior) and (exterior) submenusto the frame i want, what happens is that i rollover (DESIGN) appears (INTERIOR) and (EXTERIOR)i click over (EXTERIOR) and it brings up the frame i want, and when i drag my mouse over the //area of DESIGN Dropdown menu\ againit takes me back to frame number 1 (HOME).What i want is to stay on the page i requested until i choose to go to another one, by clicking and not go to (HOME) everytime i drag my mouse over the Dropdown menu area.
can anyone tell me how the text fx was made on [URL].. go to work section and try to rollovers on the submenu or contact section and once you click on the text field any one can direct to a tutorial site or even better a sample file i think this is text effect also used by group94.com
I've been using sen's flash/xml drop-down menu tutorial, and I have been able to create the following for (mt):url...If you rollover the first item, you will notice that the submenu loads to the right side. What I would like to have is something similar to the following attached image. Also, the code I am using can be found in the attached FLA.I know how to make the menu appear directly below the parent node, but the problem is that I am unable to shift the menu items down so that the menu items don't overlap over the existing menu items. You can see an example of what I am trying to do in the attached image.Does anybody have any insight on how to accomplish that. I tried finding the name of each movie clip and shifting them downward, but it seems that none of the movie clip names correlate to the actual menu item - therefore, I am unable to shift them downwards in order to make a space for them.
I'm building a menu with action script, the menu has an interval, so the items follow after each other. This is not a real problem. But the submenu is. I want to build it the same way, with the interval. But the menu array contains, some years, and with a loop a go trough this array and flash builds it with the items of the array. The submenu array, contains the quantity of the year, so the quantity of subbuttons.. But i can't fix it to use the number in the array as quantity of subitems. here is the code:
'm working on a menu system for our website - the menu, as is, is similar to the one found on macromedia.com (the main menu and the submenu laid out horizontally across the screen). how do i make it so that the submenu is vertical and located under the appropriate menu heading? Here's the AS that I used:
Code: _global.navXPos = 20; var root_mc:MovieClip = this; //