next up previous contents
Next: Using ActiveX Objects Up: Using menus Previous: The main menu   Contents


The context menu

You can customize the context menu by handling the FlashPlayer.onContextMenu event.
FlashPlayer.onContextMenu = function ()
{
    var menu = new Menu;
    menu.load("contextMenu");
    menu = menu.getSubMenu(0);
    if (menu.show() == "new")
    {
        //do something
    }
}



Copyright ©2000-2007 Shanghai TopCMM Software Technologies. All Rights Reserved.