套件 | mx.controls |
介面 | public interface IFlexContextMenu |
實作者 | FlexNativeMenu |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
相關 API 元素
公用方法
方法 | 定義自 | ||
---|---|---|---|
Sets the context menu of an InteractiveObject. | IFlexContextMenu | ||
Unsets the context menu of a InteractiveObject. | IFlexContextMenu |
方法詳細資訊
setContextMenu | () | 方法 |
public function setContextMenu(component:InteractiveObject):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | 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..
參數
component:InteractiveObject — InteractiveObject to set context menu on
|
unsetContextMenu | () | 方法 |
public function unsetContextMenu(component:InteractiveObject):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | 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..
參數
component:InteractiveObject — InteractiveObject to unset context menu on
|
Tue Jun 12 2018, 03:47 PM Z