disableContextMenu and mouse control?

Hi people, Im trying to set my webplayer up so i can right click without the drop down list popping up, I was told disableContextMenu will do this for me, But ive applied it into the script and its a no go. heres the whole .html file

http://www.pasteit4me.com/207001

as you can see, line 110 and 182 should disable this, but it does not. any help?

Also:

Im trying to set it up so the mouse stays in the center of the webpage while playing (fps game and i dont want the mouse leaving the webplayer)

Not sure how this is done!

thanks for the help in advance!

I’d also like to know this as I’ve have no success with disabling the context menu.

well, the people in the mirc channel helped me nail it down to the type of web browser being used. IE doesnt show the context menu, while Chrome (What im using) and Firefox do. Any help with this? :P.

You need to include the disableContextMenu attribute in both the “object” and the “embed” tags. One is for IE, and the other is for everything else. You can do a View Source on my site http://fugugames.com/ and search for all instances of “disableContextMenu” as an example.

oh, Awesome! thanks. Howd you get the mouse to stay hidden in your games? >.<,
i mean from being moved around the webpage while its being played

You can set the variable Screen.lockCursor (or Screen.cursorLock, something like that). Anyway, look for it in the Script Reference and there’s a big blob of example code.

Awesome now that work great.