Name
LzContextMenu (as2) — A contextual menu
Description
The LzContextMenu
represents a context (right-click) menu.
Details
Methods (8)
-
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);
-
__LZcontextMenu()
-
private function __LZcontextMenu();
ContextMenu.__LZcontextMenu
Returns Flash ContextMenu object
-
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
-
-
onselect
-
JavaScript Synopsis
public
LzContextMenu extends
LzNode
{
prototype public function
addItem
(
item : LzContextMenuItem);
prototype public function
makeMenuItem
(
title : String,
callback : function);
prototype public function
setDelegate
(
delegate : LzDelegate);
}