View Full Version : Right click listener
hosdank
09-06-2008, 05:26 PM
Is there some way I can detect right clicks? Thanks :)
BLiZZaRD
09-06-2008, 05:34 PM
what you are looking for is called the ASnative "back door" code.
this.onEnterFrame = function() {
if (ASnative(800, 2)(1)) {
trace ("You have pressed or depressed the left mouse button");
}
}
see the (1)?? That is left mouse button. replace that with a (2) for right mouse and a (4) for middle button/scroll wheel
:D
hosdank
09-06-2008, 05:50 PM
Wow, thanks ALOT. :)
BLiZZaRD
09-06-2008, 06:36 PM
Welcome :D
Medyman
09-06-2008, 07:29 PM
For AS3 users:
Right clicks can be tracked using MouseEvent.buttonDown
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.