ssCore.App.enableFlashMenu

Enable or disable the Flash context menu.


Availability:

First available in version 3.0 build 2039.


Input Parameters:

flag - A flag that determines whether the Flash context menu should be displayed in response to a right click. Valid values include: true and false.


Output Parameters:

No output parameters.


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.App.enableFlashMenu( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.App.enableFlashMenu( paramsObject );


Notes:

SWF Studio allows you to disable the Flash menu with a setting on the Defaults tab, but the enableFlashMenu command allows you to enable or disable this feature at runtime. The Flash context menu is enabled by default on the Defaults Tab.

If the Flash menu is enabled it will override the onContextMenu notification for Popup menus on the stage.

The Flash menu that appears depends on how you have set the Flash showMenu FSCommand. When you say fscommand("showmenu", "true") the full Flash context menu will be shown. If you use fscommand("showmenu", "false") a subset of the context menu will displayed that only contains the "Settings" and "About Macromedia Flash" menu items.


Examples:

ssCore.App.enableFlashMenu({flag:true});