# mouseWheel listener

**URL:** <https://forum.kirupa.com/t/mousewheel-listener/191748>\
**Category:** flash\
**Created:** [June 22, 2006, 5:44pm UTC](https://forum.kirupa.com/t/mousewheel-listener/191748 "2006-06-22T17:44:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![master\_phat](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@master\_phat](https://forum.kirupa.com/u/master_phat)\
**Post date:** [June 22, 2006, 5:44pm UTC](https://forum.kirupa.com/t/mousewheel-listener/191748/1 "2006-06-22T17:44:52Z")

</div>

I’m trying to detect the idleness of a mouseWheel function… and it isn’t working. If anyone else has tried this another way and gotten it to work plz share :king:

```auto

time_out = .2*100;
                mouseListener.onMouseWheel = function(delta:Number) {
                    mouseScroll = getTimer();
                    if ((mouseScroll+time_out)<getTimer()) {
                        trace("stopped");
                    } else if ((mouseScroll+time_out)>getTimer()) {
                        if (delta>0) {
                            new Tween(mouse_scroll_mc, "_alpha", Strong.easeOut, mouse_scroll_mc._alpha, 100, 50);
                            mc._xscale += delta;
                            mc._yscale = mc._xscale;
                            _root._xmouse = mc._xscale/2;
                            _root._ymouse = _root._xmouse
                        }
                    }

```
