Flasher Archive

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


Subject: RE: FLASH: right click detection
From: Eric Dunham
Date: Mon, 27 Dec 1999 11:41:01 GMT

That is correct, it does only work with HTML (I even tried the
document.embeds[] and document.movieid stuff). Now I'm not quite sure,
because I'm still a novice flasher, but if Flash can intercept keypress
events, I'm assuming that it could also intercept a right-click event (which
is seen as a sort of keypress, at least it is in JavaScript). Regardless, it
should still have an ASCII code of sorts that you could intercept and test
for, couldn't you...? Correct me, John, if I'm way out in left field please
:)

-----Original Message-----
From: owneratchinwag [dot] com [owneratchinwag [dot] com]On">mailto:owneratchinwag [dot] com]On Behalf Of John
Croteau
Sent: Sunday, December 26, 1999 11:00 PM
To: flasheratchinwag [dot] com
Subject: Re: FLASH: right click detection


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



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, John Croteau

Replies
  Re: FLASH: right click detection, John Croteau

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