> Most of the trickery is in the HTML of the page
> the swf is hosted in, intercepting the right mouse click
> and executing a function in the swf.
>
> function onNsRightClick(e){
> if(e.which == 3){
> Test9.openRightClick();
> e.stopPropagation();
> }
> return false;
> }
Well, it looks like, at least when I run Firefox from
Flex Builder, this javascript function does not get executed
(however, the callback this Javascript snippet
does get executed:
if(navigator.appName == "Netscape"){
document.captureEvents(Event.MOUSEDOWN);
document.addEventListener("mousedown", onNsRightClick, true);
}
else{
document.onmousedown=onIeRightClick;
}
So, hm, no luck so far :)