How open custom Context Menu on Text Area Cortrol in flex?

此生再无相见时 提交于 2019-12-08 13:55:44

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!