Finding Mouse Right Click Event

Hi,
I need find out the Right Click mouse button Event.
I using some script its work only on windows System. I need it work Linux system also.
Pls help me
Reagrds
John.W.Berry


I am using following Script:(Its work window very fine but not a linux)


Mouse.rightMouseDown = false;
checkForChangeInMouse = function () {
if (Mouse.rightMouseDown ^ (Mouse.rightMouseDown=Key.isDown(2))) {
if (Mouse.rightMouseDown) {
Mouse.broadcastMessage(“onRightMouseDown”);
} else {
Mouse.broadcastMessage(“onRightMouseUp”);
}
}
};
setInterval(checkForChangeInMouse, 1);
Mouse.addListener(this);
this.onRightMouseDown = function() {
trace(“Right Down”);
};
this.onRightMouseUp = function() {
trace(“Right Up”);

};