2

Flash player has a bug in using anything other than wmode="window" in Firefox/Chrome when using any other language than English. This bug is reported and not fixed yet

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

The issue can be seen better here -

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

Now to my problem - im trying to use Uza's right click solution ( http://www.uza.lt/blog/2007/08/solved-right-click-in-as3 ) in my application, but am stuck with problem of wmode. The event capturing doesnt seem to work with wmode="window" and i need multiple languages to work on my app as well.

Is there any solution to this that anyone has identified? Or is there any way that the right click can be captured without setting wmode.

Any help will be greatly appreciated. Thanks!!

Hiraash
  • 21
  • 2
  • I'm confused how JavaScript enters this equation – cgp May 25 '09 at 18:45
  • SWFObject is a JavaScript solution also capturing and suppressing the rightclick event is done through JavaScript. IF thats what you are asking? :-) – Hiraash May 25 '09 at 19:40
  • Just a note: be careful with opaque or transparent wmode, see what Tinic Uro says: old one (but still true for backward compatibility): http://www.kaourantin.net/2005/01/wmode-and-flash-video.html new one: http://www.kaourantin.net/2010/02/core-animation.html – daniel.sedlacek Nov 09 '10 at 13:50

1 Answers1

0

Fortunately you most often want to know if the right button has been clicked. Since W3C and Microsoft happen to agree on this one and give button a value of 2, you can still detect a right click.

function doSomething(e) {
    var rightclick;
    if (!e) var e = window.event;
    if (e.which) rightclick = (e.which == 3);
    else if (e.button) rightclick = (e.button == 2);
    alert('Rightclick: ' + rightclick); // true or false
}

http://www.rgagnon.com/jsdetails/js-0061.html

http://www.quirksmode.org/js/events_properties.html

http://unixpapa.com/js/mouse.html http://www.javascripter.net/faq/leftvsri.htm

Charlie Martin
  • 110,348
  • 25
  • 193
  • 263
zod
  • 12,092
  • 24
  • 70
  • 106