# Middle Click in AS3

**URL:** https://forum.kirupa.com/t/middle-click-in-as3/308771
**Category:** flash
**Created:** [April 29, 2010, 8:09pm UTC](https://forum.kirupa.com/t/middle-click-in-as3/308771 "2010-04-29T20:09:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![enridp](https://avatars.discourse-cdn.com/v4/letter/e/6f9a4e/32.png) [@enridp](https://forum.kirupa.com/u/enridp)
#### Post date: [April 29, 2010, 8:09pm UTC](https://forum.kirupa.com/t/middle-click-in-as3/308771/1 "2010-04-29T20:09:05Z")

</div>

Hi !!! I’m looking for the way to detect the middle click with AS3.  
I know there is a MouseEvent.MIDDLE\_CLICK, but it’s only for AIR:

[http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/MouseEvent.html#MIDDLE\_CLICK](http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/MouseEvent.html#MIDDLE_CLICK)

Why Flash didn’t put that function for Flash Player too???

How can we detect the middle click then?  
In AS2 we can write something like this:

if (Key.isDown(4)) {  
trace(“Middle Click!”);  
}

But in AS3???

Thanks!!  
Enrique.
