I was looking through my archives and I did a little CSS trick before to disable right clicks for Flash. It’s basically putting a layer on top of the Flash so the Flash can’t receive right clicks to make that menu.
But then I thought again, technically it would be possible to let Javascript handle right clicks and pass it onto Flash right? Then both left and right clicks become available for a flash movie. This would be especially useful for games involving the mouse.
you can disble the menu and then there is a keypress number that is undocumented in flash that == right-click, it’s totally explained in ‘Flash Hacks’. BTW theres also a keypress number for scrollup and scrolldown:)
Do you even need that extra layer on top of it? From my understanding, you can eliminate that menu in flash through actionscript. You may also put a right click menu.
I’m certain I’ve seen codes for both of the above while browsing through random actionscript tricks in the past.
You can’t disable the right-click menu with AS but you can use the keyCode 2 along with the static Key.isDown method to detect when the right mouse button is down.
It’s not possible to get rid of the right click menu in a Flash Movie when it’s played in a browser. It is possible to get rid of it when it is a standalone application.
So basically my idea is to use Javascript to catch all keyboard/mouse clicks and forward it to Flash.
you cant totally get rid of the menu (embedded in html), but u can get close - custom menu code. make a new menu. u still get the settings/about menu items though @bombsledder - ya i think they got rid of that code… mate, did “you” test it? … works bloody nice here.
ya just tested it, forgot where i read that they got rid of it, probably just some noob saying it, works perfect here maybe you could make a javascript class that will stop it would be nice