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


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


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.)