XML HORIZONTAL MENU
FLOATING GALLERY
PUZZLES

This is an AS2 XML driven multilevel menu. It allows the following:
-setting the label of each menu item;
-setting the normal color of each menu item;
-setting the pressed color of each menu item;
-setting the command each menu item will execute.
-setting the horizontal and vertical space between the menu items;
-adding submenu items to each menu item;
The available commands are:
-getURL where you need to set attribut1 with the requested url and attribut2 with the target (_self/_blank);
-gotoAndStop where attribut1 holds the target movie and the attribut2 holds the target frame (named or number);
-gotoAndPlay where attribut1 holds the target movie and the attribut2 holds the target frame (named or number);
-loadMovie where attribut1 holds the deploy movie where the content will load and attribut2 holds the name of the external file to load (tested with images and swf files).
attribut3 is an additional variable which can be used to extend functionality.
The menu allows setting one of its items to pressed state by default. In order to do that you have to set flashvars:
param name=”FlashVars” value=”default_menu_id=3” – this example sets menu with id 3 to pressed state for IE browser.
Other properties of menu items are available for change in the fla file like:
-font size;
-font name;
-font weight;
-font style;
The menu builds from the position it is dropped in the stage.
HOW TO MAKE THE MENU DROP DOWN
In menu_mc on line 136 you will find the code calculating the tar_y value. there is minus sign there “parent_mc.tar_y-”. just replace it with plus sign “parent_mc.tar_y+” and the menu items will drop down.
Posted 6 months ago