Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: right click detection
From: John Croteau
Date: Mon, 27 Dec 1999 05:12:24 GMT

Hi Eric,


> <rant>
> Let me start this by saying, yes you can do this. What I can't stand is when
> people only reply with a "Yes you can", and then do not offer a single bit
> of advice on how to accomplish the task. Do the people that post these kind
> of messages really think that that helps anyone? All it does is eat up
> bandwidth and waste time, IMNSHO.
> </rant>

Let me start by saying though you can capture a right click in an HTML document
with the script Eric supplied (or a similar one) and it does work for Windows
versions of IE 4+ and Netscape 4+, but it does not work (or at least I can't get
it to work) when you right click in Flash because Flash takes precedence (over
the script) and you get the regular Flash menu.

So the following is a solution for HTML but not for Flash:
Correct me if I'm wrong (it certainly won't be the first time),
but I tried this a long time ago with no success.
If there is something I'm missing, PLEASE clue us in :-).
Maybe IMNSHO should be IMHO :-)

I hope all my fellow Flashers had a merry Christmas (whatever your religious
inclination might be) and are looking forward, like I am to a happy and
(hopefully) prosperous New Year.


> <solution>
> here is a simple script that you can use...
> ----------------------------------------------------
> <!--
> function RightClickCatcher(click){
> if (document.layers && click.which == 3) {
> alert('You right-clicked!');
> return false;
> }
> if (document.all && event.button == 2) {
> alert('You right-clicked!');
> return false;
> }
> }
> document.onmousedown = RightClickCatcher;
> //-->
> ----------------------------------------------------

--
Co-author of Flash 4 Web Animation F/X and Design
Autographed copies now available - http://www.crownmall.com/Flash4/
----------- -----------------------
John Croteau croteauaterols [dot] com (mailto:croteauaterols [dot] com)
------------- -------------------------
FlashTek (Advanced Websites with Flash) http://www.FlashTek.com/
Flash Bible (Fast track to good Flash) http://www.FlashBible.com/
Flash Central (The Universe Starts Here) http://www.FlashCentral.com/
The Flash Tech Resource (Tech Notes) http://www.FlashCentral.com/tech/




flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  RE: FLASH: right click detection, Eric Dunham

Replies
  RE: FLASH: right click detection, Eric Dunham

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]