Working with the context menu
Use these commands to control the context menu that is opened with a right click.
Synonym for showmenu.
This command cancels all current options of the context
menu and specifies new options. Use it when you need different context
menus in different situations. Alternate the label of the item and the
callback function executed once it is selected in the arguments. They
should be separated with a vertical pipe character '|'.
To register an ActionScript method as a callback function you should use the ExternalInterface.addCallback method.
For example, the following script specifies a context menu with two options (Play and Stop) and a horizontal bar between them. The first option calls the mnuPlay callback function and the second one calls the mnuStop callback function.
All rights reserved © 2007 SWFMaestro.com