Name

LzContextMenu (as2) — A contextual menu

Synopsis

JavaScript: LzContextMenu
Type: Class
Access: public
Runtimes: as2
Topic: LFC.Views
Declared in: WEB-INF/lps/lfc/kernel/swf/LzContextMenu.lzs

Description

The LzContextMenu represents a context (right-click) menu.

Superclass Chain

node (LzNode) » LzContextMenu

Known Subclasses

Details

Methods (7)

addItem()
public function addItem(item : LzContextMenuItem);
LzContextMenu.addItem Adds a menu items into a menu
clearItems()
public function clearItems();
LzContextMenu.clearItems Remove all custom items from a menu
getItems()
public function getItems();
LzContextMenu.getItems Return list of custom items
hideBuiltInItems()
public function hideBuiltInItems();
LzContextMenu.hideBuiltInItems Removes Flash-installed default menu items
initialize()
public function initialize(del);
makeMenuItem()
public function makeMenuItem(title : String, callback : function);
LzContextMenu.makeMenuItem create a new menu item for a LzContextMenu
setDelegate()
public function setDelegate(delegate : LzDelegate);
LzContextMenu.setDelegate Sets the delegate which will be called when the menu is opened

Events (2)

onmenuopen
public event onmenuopen;
onselect
public event onselect;

JavaScript Synopsis

public LzContextMenu extends  LzNode  {
  prototype public function addItem (item : LzContextMenuItem);
  prototype public function clearItems ();
  prototype public function getItems ();
  prototype public function hideBuiltInItems ();
  prototype public function initialize (del);
  prototype public function makeMenuItem (title : String, callback : function);
  prototype public event onmenuopen ;
  prototype public event onselect ;
  prototype public function setDelegate (delegate : LzDelegate);
}