Capturing the righclick event on a Flash plugin using JS when using WMODE = "window"

I am using a custom context menu of the context menu for a flash application (overriding the default adobe menu). For this solution, the right-click ( http://www.uza.lt/blog/2007/08/solved-right-click-in-as3 ) works well.

However, the flash player plugin (for Firefox / Chrome, etc.) has an error that violates the use of international characters when using WMode to embed html. WMode = "widnow" works.

http://bugs.adobe.com/jira/browse/FP-501

The problem here is better visible -

http://www.5etdemi.com/blog/archives/2005/06/firefox-wmodetransparent-is-completely-screwy-and-breaks-textfields/

Problem

I need to capture the right-click event fired from the Flash player plugin into the web browser container without using WMode in the html embed tag (ie WMode = "window")

Does anyone have any ideas about this?

+3
source share
1 answer

Right click The JS hack works in an opaque and transparent mode, because the browser passes Flash inside its own display tree. In this mode, the browser receives mouse events, allows them to process JS, and then passes them to the Flash plugin. (This is why errors appear in transparent mode with the input of accented or non-Latin characters, because some browsers do not transmit them correctly).

Flash html DOM . . , , - JS .

0

Source: https://habr.com/ru/post/1709063/


All Articles