问题
How i open my custom menu over right click on Text Area control, currently default menue of paste, Copy, Cut etc is opened.
Please keep in mind that i want to open custom context menu over TextArea Control of Flex.
回答1:
MouseEvent.RIGHT_CLICK is a new Event that will be enabled in the newest flash player version previously it was only available in Adobe Air desktop. http://www.bytearray.org/?p=3755
It depends on what you want to show up in the menu instead of the default?
Here is a very nice tutorial on changing or adding to the right context menu atm http://www.republicofcode.com/tutorials/flash/as3contextmenu/
来源:https://stackoverflow.com/questions/8645777/how-open-custom-context-menu-on-text-area-cortrol-in-flex