mouseWheel listener

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:


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
                        }
                    }