| Previous | Next | |
Windows: Not Applicable
Macintosh: Flash 8 or 9 AS2.0 SWF + mProjector
1.0;
mMenu.addMenuToMenuBar([menuName:String]) : VoidmenuName - Name of custom menu.
Nothing.
Method; MAC ONLY - Adds a new menu to the application's menu bar. The menu item will be added to the right on existing built-in and custom menus. This command has no effect if you do not check the "Show Application Menu Bar / Show In Dock" box on mProjector's Application tab panel when compiling the application.
The following code adds a Help menu to the menu bar of a Macintosh application.
/* Create mProjector Help Menu */ // Help Menu String Constants helpMenuName = "Help"; helpShortcut = "F1"; menuItem_about = "About"; menuItem_purchase = "Buy Online"; menuItem_activate = "Activate..."; menuItem_docs = "Online Documentation"; menuItem_samples = "Online Samples"; menuItem_forums = "ScreenTime User Forums"; menuItem_gettingStarted = "Getting Started"; menuItem_installFlashExtension = "Install Flash Extension for mProjector"; menuItem_quit = "Quit"; menuItem_help = "Help"; // Create Help Menu mMenu.createMenu(helpMenuName); // Build Menu mMenu.addItem(menuItem_help, helpMenuName, helpShortcutID); mMenu.addItem(menuItem_gettingStarted, helpMenuName); mMenu.addItem(menuItem_docs, helpMenuName); mMenu.addItem(menuItem_samples, helpMenuName); mMenu.addItem(menuItem_forums, helpMenuName); mMenu.addSeparator(helpMenuName); mMenu.addItem(menuItem_installFlashExtension, helpMenuName); mMenu.addItem(menuItem_checkForUpdates, helpMenuName); mMenu.addItem(menuItem_checkForUpdatesAtStartUp, helpMenuName); mMenu.addItem(menuItem_purchase, helpMenuName); //Add Menu To Menu Bar mMenu.addMenuToMenuBar(helpMenuName);
Using mProjector -- Menus, mMenu.createMenu(), mMenu.deleteMenu()
mProjector Class Basics -- mMenu, Context Sensitive Menus
| Questions or Feedback? | Previous | Next |