This Advanced XML Menu is Amazing!!
Okay, I know I have now set myself up for extra scrutiny, but I am super proud of this item.
This menu is pretty close to being a Site Template. All you would need to do in your main FLA is build your background, drop this menu onto your Stage from the library and for site content put your individual pages in separate external SWFs or Movie Clip assets in your library and this menu will load those SWFs into a container MovieClip that it has set up. OR Load a MovieClip from the library by its Linkage Identifier. Website done.
This XML driven menu structure allows you to set up your customized menu quickly and dynamically. Future edits and additions to your site navigation are just as easy. For example, if you need to add a new main button to the main menu, an additional button in a sub menu or add a whole new Sub Menu, it is all done easily in the XML file.
Customizing this menu is just as easy.
You can Drag and Drop this menu Movie Clip from the library onto your project Stage or attach it dynamically through ActionScript. Positioning is controlled in the XML file and the ActionScript in the menu uses Relative Paths, so as an embedded asset it is self contained.
Changing the font is easy, choose any font from your font library.
Plus this menu can load external SWFs, URLs or a Movie Clip asset from your project library! There is also a built in Loading Indicator for external content.
The menu is extremely customizable! And all of it can be done in the XML file. You can externally adjust:
Location – X & Y location of the menu and X & Y location of the content loaded are stored in the XML file.
Menu Backing – Colour, Alpha (alpha of zero gives you a menu with no backing, but the backing is still there, though hidden, to help with orientating the menu assets).
Button Font – Size, Colour, Rollover Colour, Selected Colour, Sharpness, Thickness all adjusted in the XML file.
Font Type – Default is ‘Helvetica Neue Black Condensed’, however it is very easy to alter the font to something else.
Font Drop Shadow & Glow – adjust the drop shadow amount and have a glow effect on or off.
Padding – Adjust the padding for all four sides of the Menu in relation to the ‘Menu Backing’, to get a custom fit.
Button Spacing – Spacing can be set to ‘Auto’ for centering the buttons left to right between the padding from the ‘Menu Backing’ edges or you can set the spacing yourself to your desired amount.
Button Names – But of coarse! You can put in as many buttons as you like.
Button Content Target – The path and name of what the button will load is in the XML file, so easy to edit content. You can load an external SWF or a MovieClip from the library or open a link in a new window.
Loading Icon – Edit the location and colour of the built in loading icon (for loading external SWFs).
Initial Button Selected – Choose to have a button preselected for the initial load and have its corresponding movieclip or SWF load as well.
Sub Menu – Have a sub menu for any or all of the main buttons. A drop down sub menu, with external naming and target paths, plus all the adjustments for the main buttons can be done separately for the sub menu, giving you extra customization.
Plus if you feel the need to get under the hood and play around, the ActionScript has been well documented.
Also check out: