Tazbo
02-16-2009, 09:05 PM
Hi Guys,
I am really new to flash and my first project is to design a flash site with a menu like http://www.insideluxurytravel.co.uk/videos.html. I really love the way this menu works as you know where you are at all times. Can anybody point me in the right direction of where to start? I have made all the graphics in flash and now I just need to start actionscripting.
Thank you.
pixelsguy
02-16-2009, 10:38 PM
first consider what needs to happen. remember that nothing happens on its own. Every motion, color, highlight, ect, has code behind it.
each menu item, when selected, does what? it moves to the left, and, once it gets there, displays another menu.
that menu then does the same, and the final menu item brings you to a video player and plays your selection.
To acheive this functionality you are basically going to need to organize your menus into different movie clips. each one will just move over to display another. so level one has three options- A, B, or C. select A and you get options A1, A2, A3. option A2 gives you A2a, A2b, and A2c. each of these finally gives you content.
so your event handlers would be a click handler for each button, which would fire off a series of functions that move the menu you just selected, when the meny has moved over, you fade up the next menu and add event listeners for that menu. step and repeat until you make your final selection, then you move everything down and show your content.
if you make a selection behind your current menu chain level, you find that it also works in reverse, hiding previously available menus, sliding back into its original place, and then completing the cycle yet again.
in order to achieve this backward functionality, you will need, with each selection, to either keep track of what level of the menu you are at with a variable or by checking to see if other menu items are visible or not.
hope this helps.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.