Public Methods

menuAddItem(mainMenu:String, index:uint = 99):void
[AIR] Adds a menu item if it does not already exist.

Menus

menuClear(mainMenu:*):void
[AIR] Clears all submenu items from a menu. Expects either a string representing the menu item's name or a number representing it's index.

Menus

menuExists(mainMenu:*):Boolean
[AIR] Checks if menu item exists. Expects either a string representing the menu item's name or a number representing it's index.

Menus

menuRemoveAll():void
[AIR] Removes all menu items.

Menus

menuRemoveItem(mainMenu:*):void
[AIR] Removes a menu item. Expects either a string representing the menu item's name or a number representing it's index.

Menus

nestedSubmenuAddItem(mainMenu:*, submenu:*, nestedMenu:String, shortcutKey:String = null):void
[AIR] Adds a nested submenu item. The 'mainMenu' param expects either a string representing the menu item's name or a number representing it's index. The 'submenu' param expects either a string representing the submenu item's name or a number representing it's index.