# Finding Mouse Right Click Event

**URL:** https://forum.kirupa.com/t/finding-mouse-right-click-event/154304
**Category:** flash
**Created:** [July 8, 2005, 1:00pm UTC](https://forum.kirupa.com/t/finding-mouse-right-click-event/154304 "2005-07-08T13:00:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![arrsathish](https://avatars.discourse-cdn.com/v4/letter/a/b5ac83/32.png) [@arrsathish](https://forum.kirupa.com/u/arrsathish)
#### Post date: [July 8, 2005, 1:00pm UTC](https://forum.kirupa.com/t/finding-mouse-right-click-event/154304/1 "2005-07-08T13:00:25Z")

</div>

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”);

};
