December 10, 2003

Calling a function on right-click (Win IE & MX)

Huge thanks to Shock at ground.gr for posting this great tutorial a few months back on trapping the right-click event in the browser to prevent the Flash menu from popping up.

I needed this trick in a big way this afternoon.

If you don't use a "menu" movieclip, but instead create an empty movieclip with a stop() in the first frame and any function call in the third frame, that function will get fired on right-click with no adverse side-effects.

(Putting the function call in the second frame doesn't seem to give Flash enough time to properly respond).

Posted by andy at December 10, 2003 05:46 PM
Comments
Post a comment