Description
Fires when a menu item is about to appear. You can handle this event to change the state of the menu item. Not available for Screen savers.
Syntax
Menu.onUpdateItem = function (identifier, state)
{
// do something
}
SWFKit transfers the identifier of the menu item to the event handler.
The state parameter is an object contains three write-only properties
Examples
Menu.onUpdateItem = function (id, state)
{
switch (id)
{
case "id0":
// disable the menu item
state.enable = false;
break;
}
}