flash actionscript:
Vee, I am not sure if this is what you want. First of all, i assume its somthing similar to the menu bar at the top of window which has File, Edit, View (the parent) etc and each of them crowded with options and even sub-menus (children) So there are a few parents, each assign a property called 'opened' with default value = -1 (false) For example fileMenu.opened = -1 editMenu.opened = -1 As soon as user click on one of the parents, set it's 'opened' to 1 (true) by multiply a negative one (-1) Can have a update function if its 1 then shows the menu, if -1 then hides it. If you click on fileMenu, so it set to 1, click again, then set to -1 call update If you click on fileMenu, set to 1, then click on editMenu, all the rest set to -1, only editMenu sets to 1, call update In fact the 1 and -1 is only for a light switch purpose, you hide all others no matter they were 1 or not when you select a parent. Your variables and true or not idea is basically all I mentioned here.
I have a nav that i've worked out the long way. When I say the long way I used tons of frame actions (gotoAnd...) to make the nav play certain sequence based upon currentframe == 'some frame number'. I realize at the time it was the only thing I knew how to do or was ready to take on. Now feeling more comfortable with AS, I feel that this isnt the most efficient way of conducting business. Basically I still have the same problem I had originally -I have a nav that has open and close features. If one part of the nav is open I want that to close(i have been using currentframe here to test) then open another menu. Any help with this is greatly appreciated. I have multiple sub-navigation that has to check to see if another part is open before opening themselves. I believe they call this type of a menu 'clamshell style'. Im thinking that maybe there is a way to use varialbes and test if they are true or not. Im not sure though.
If your navigation can be contained in one movie clip, you can just put one frame and strech it across the entire timeline, then just load up other navigations when you need to using MovieClip::attachMovie
robutter- I dont that would work b/c the timing might not sunc right. After one menu closes another has to open right away. That is if im understanding you correctly. right now I have one huge MC that has every possible circumstance for example every main menu has a close and go sequence in the timeline for the next main menus sub menu. GaryCCY- the menu open and close vertically, what happens is that there are: 8 main menu or buttons 5 of those have submenus (they open up to show more buttons) When you click on one of the 5 that have sub menus the other main buttons that are below that selection, have to move down to reveal the sub menu. I hope this makes more sense to everyone.
Vee, as what i guess, yours looks like the browser's menu bar, thats why I use the File, Edit, View etc as an example.
Don't see what you're looking for? Try a search.
|