Apache Flex 4.16.1 API Reference | All Packages | All Classes | Index | Frames No Frames |
IFlexContextMenu

Package | mx.controls
Interface | public interface IFlexContextMenu
Implementors | FlexNativeMenu

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

The IFlexContextMenu interface defines the interface for a Flex context menus.

See also

mx.core.UIComponent.flexContextMenu

Public Methods

| Method | Defined By
--- | --- | ---
|  | setContextMenu(component:InteractiveObject):void Sets the context menu of an InteractiveObject. | IFlexContextMenu
|  | unsetContextMenu(component:InteractiveObject):void Unsets the context menu of a InteractiveObject. | IFlexContextMenu

Method Detail

setContextMenu | () | method

`public function setContextMenu(component:InteractiveObject):void`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Sets the context menu of an InteractiveObject. This will do all the necessary steps to add the InteractiveObject as the context menu for this InteractiveObject, such as adding listeners, etc..

Parameters

| `component:InteractiveObject` — InteractiveObject to set context menu on

unsetContextMenu | () | method |

`public function unsetContextMenu(component:InteractiveObject):void`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Unsets the context menu of a InteractiveObject. This will do all the necessary steps to remove the InteractiveObject as the context menu for this InteractiveObject, such as removing listeners, etc..

Parameters

| `component:InteractiveObject` — InteractiveObject to unset context menu on

Wed Nov 15 2017, 09:50 AM +01:00