a doosey, you say? i think i saw a tumbleweed blow by! well, i don't have an answer for you, but i'll tell you what i understand ... maybe it'll inspire some conversation at least.
well, i guess you know that it's not uncommon to catch the right click event in javascript. there is a dhtml event, oncontextmenu, to do so ... at least in theory. the method varies between netscape and ie, but works in the normal case. you can see a good example in action (don't know how it works on mac, though) at http://website.lineone.net
document.oncontextmenu = function(){return false}
will disable the context menu.
this is fine for most cases, but not flash. that's because the activex takes the event in flash, not the document. i think you already understood at least this much when you asked the question, i'm just stating the problem as i understand it. ok, so you have to catch the event before it gets sent to the flash player.
btw, i realize that disabling the context menu isn't necessarily what you had in mind, but it's a good basic case for handling the event - if you can stop the event, then you can use javascript to pass an event to flash ... see
http://www.macromedia.com/
ok, so this is where it gets tricky. first, two more links:
http://www.macromedia.com/
and
http://msdn.microsoft.com/
the first of these indicates that it *is* possible to capture the right click to disable the flash context menu in ie5.5 ... which in turn kinda implies that it *isn't* possible when the user has a different browser, not good news. the second link is some ie5.5 documentation that states under no uncertain terms that the oncontextmenu event applies to the embed tag ... exactly what we need i do believe. if that's wrong, it would also be possible, in ie5.5, to use "attachEvent" on the object tag, to handle it at that level. with me so far? no worry if you aren't, because i just tried, and i couldn't get either of those to work. no errors, but no results, either. i'm not terribly bright, though, so you may want to take a crack at this yourself ... if you can supress the context menu, i could pass the event to flash.
i'll try a couple of other angles, but it doesn't look pretty ... the best case scenario i see is getting it to work only in ie 5+ ... and that possibly only for windoze. i know you said "it won't work" isn't worth anything ... but after a week of silence i hope the links help you out a bit. good luck!
m.
Main Topics
Browse All Topics





by: alanmcclurePosted on 2001-06-01 at 19:28:38ID: 6148010
I have never run accross this before or anyone who wanted to do it. I looked through every actionscript possibility and there doesn't seem to be one. The only possible chance you might have is FsCommand. And if it works, then it will only work with internet explorer on a windows machine and maybe newer netscape browsers on a windows machine. So here it goes. You write the code in javascript that will do what you want with the right click. I am not proficient with javascript, so I won't be able to help you with it, but it sounds like you are, so it shouldn't be a problem for you to do something that simple. Next, you add the fscommand to the main timeline and copy the javascript and then paste it inside the command box under fscommand in the action panel. If this doesn't work, which I'm not sure it will, then I think you are out of luck.
Alan