ActionScript 3 Contextual Menu Manager Class
The NpContextMenu Class is a fairly simple ActionScript 3 class for creating and interacting with Contextual Menus.
The class simply redispatches the ContextMenuEvent.MENU_ITEM_SELECT event to any parties interested in responding to menu events outside of the actual class. This allows for a little more flexibility with how events are handled and how the menu itself is set up. By using this approach the menu can be a a little more dynamic.
Class Features
- Public Methods
- addMenuItem() – add menu item at run time
- removeMenuItem() – remove menu item at run time
- hideMenuItem() – hide menu item at run time
- showMenuItem()_ – show menu item at run time
- + a few getters
View Example
http://www.noponies.com/dev/as3_context_menu/
Source Files
Context Menu Class Source File (708) - 96.02 KB
Dependencies
None
