# mouse\_wheel event doesn't fire on flash player

**URL:** <https://forum.kirupa.com/t/mouse-wheel-event-doesnt-fire-on-flash-player/313776>\
**Category:** flash\
**Created:** [September 9, 2010, 11:34am UTC](https://forum.kirupa.com/t/mouse-wheel-event-doesnt-fire-on-flash-player/313776 "2010-09-09T11:34:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thickman](https://avatars.discourse-cdn.com/v4/letter/t/ecc23a/32.png) [@thickman](https://forum.kirupa.com/u/thickman)\
**Post date:** [September 9, 2010, 11:34am UTC](https://forum.kirupa.com/t/mouse-wheel-event-doesnt-fire-on-flash-player/313776/1 "2010-09-09T11:34:53Z")

</div>

I’m using Flash CS5, flash player ver WIN 10.1.53.64 and PC with win7. I pasted code below to new fla file, compile it and it doesn’t work. I did some research and found out that there is some issues using mac, or when publish in browser (wmode must be set to window not transparent) but have no clue why code simple as that doesn’t work. Just nothing happening.  
I tried clicked on stage before using mouse\_wheel to be sure that it has focus (which is needless in swf as far as I know) - still no result. Did I miss sth? Any ideas?

here is the code:

```auto
import flash.events.Event;
import flash.events.MouseEvent;

addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler);
function mouseWheelHandler(e:MouseEvent){
	trace("delta: "+e.delta);
}

```
