About customizing context menus in Flash documents
You can customize the standard context menu and the text-editing context menu that appears with Flash documents in Flash Player 7.
- The standard context menu is displayed when a user right-clicks (Windows) or Control-clicks (Macintosh) on a document in Flash Player, in any area except an editable text field. You can add custom items to the menu, and hide any built-in items in the menu except Settings and Debugger.
- The editing context menu is displayed when a user right-clicks (Windows) or Control-clicks (Macintosh) in an editable text field in a document in Flash Player. You can add custom items to this menu. You cannot hide any built-in items.
Note: The Flash Player also displays an error context menu when a user right-clicks (Windows) or Control-clicks (Macintosh) in the Flash Player and no document is loaded. You cannot customize this menu.
You customize context menus in Flash Player 7 using the contextMenu
and contextMenuItem
objects in ActionScript. For more information on using these objects, see ContextMenu class.
Keep in mind the following criteria when creating custom context menu items for Flash Player:
- Custom items are added to a context menu in the order in which they are created. You cannot modify this order after the items are created.
- You can specify the visibility and enabling of custom items.
- Custom context menu items are automatically encoded using Unicode UTF-8 text encoding.