This is the main menu class for the gallery. It actually forms the content_mc movieclip of MouseScrollBox class used in this file. The scrollbox helps to scroll through the menu items based on mouse position.
The following events are dispatched by this class:
MenuItemClicked - dispatched when the a menu item is clicked. It's event object has a property xmlpath that holds thae path to the gallery xml file corresponding to the menu item clicked
MainMenuInit - dispatched afer the initializatio the menu items
new MainMenu()public isActive:Booleanpublic function init(arr:Array, rows:Number, gapval:Number)Use this method to initialize the menu.
arr | - the array of objects containing menuitems' details |
rows | - number of rows for the menu |
gapval | - the gap between each menu item |