FvContextMenuItem class is a wrapper for orignal
Adobe ContextMenuItem class.
Automatically register item callback to dispatch fever.app.menu.FvContextMenuEvent.onContextItemEVENT event.
FvContextMenuItem still dynamic.
Take a look at FvContextMenu for example.
public function FvContextMenuItem(label:String, useSeparator:Boolean, enabled:Boolean, visible:Boolean)Constructor.
label | A String that specifies the menu item caption (text) displayed
in the context menu.
|
useSeparator | (optional) A Boolean value that indicates whether a separator bar
should appear above the specified menu item
|
enabled | (optional) A Boolean value that indicates whether the specified menu item
is enabled or disabled.
|
visible | (optional) A Boolean value that indicates whether the specified menu item
is visible when the Flash Player context menu is displayed.
|
static public onContextItemEVENT:EventTypepublic __KEY:Numberstatic public PREFIX_ROOT:Stringpublic contextMenuOwner:FvContextMenupublic function addEventListener(type:EventType, listener):Void
Adds passed-in listener for receiving passed-in type event.
type | Name of the Event. |
listener | Listener object. |