Flash.ui.ContextMenu

Hello,

In openfl HTML5 what is the equivalent of flash.ui.ContextMenu ?

Thanks.

I don’t think there is one yet. If you really need a context menu, it should be possible using templates, but it won’t be easy and it won’t work across platforms.

What is js.html.MenuElement and js.html.MenuItemElement

It’s unimplemented, but happy to merge a pull request or help someone who wants to implement support :slight_smile:

Here’s an article that may help?

Actually, seems it’s really not supported

https://caniuse.com/#feat=menu

Yeah, if it’s deprecated and only Firefox supports it, that isn’t what you want.

Maybe instead you can listen for MouseEvent.RIGHT_CLICK and display a fake context menu. (That is, show a DisplayObject that happens to look like a context menu.)