A generic class used to implement the core functionality of a single level menu. Extend this class to implement your own menus.
new GenericMenu()public itemGap:Numberpublic isActive:Booleanpublic hasDefault:Boolean [Read Only]public function getLinkByID(str:String):ObjectUse thie method to get an object containing the info for a given menu item based on the passed ID.
str | - the ID of the menu item |
- the object containing different menu item variables
public function registerListener(mc:DisplayObject)Use this method to register any movieclip as a listener to the events of this class.
mc | - the movieclip that is to be registered |