# Mouse\_wheel

**URL:** <https://forum.kirupa.com/t/mouse-wheel/229738>\
**Category:** flash\
**Created:** [June 19, 2007, 8:34pm UTC](https://forum.kirupa.com/t/mouse-wheel/229738 "2007-06-19T20:34:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blaatorx](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@blaatorx](https://forum.kirupa.com/u/blaatorx)\
**Post date:** [June 19, 2007, 8:34pm UTC](https://forum.kirupa.com/t/mouse-wheel/229738/1 "2007-06-19T20:34:54Z")

</div>

peepz,  
i have a scroller class that makes use of the mouse wheel like this:

```php

_mcWheelArea.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheel);
private function mouseWheel(me:MouseEvent):void
{
 if (me.delta > 1) me.delta = 1;
 if (me.delta < -1) me.delta = -1;
    
 trace("mouseWheelHandler delta: " + me.delta);
    
 d = -me.delta * scrollWheelSpeed;
    
 if (d > 0) 
 {
  _mcDragger.y = Math.min(bottom, _mcDragger.y + d);
 }
 if (d < 0) 
 {
  _mcDragger.y = Math.max(top, _mcDragger.y + d);
 }
}

```

the eventListener needs a movieclip to get work, i want specific area in which you can use the mouseWheel, but if is use my “\_mcWheelArea” it needs to be on top off all my movies, but with this on top my other buttons(which are beneath the \_mcWheelArea clip) won’t react anymore  
Can somebody make it possible to let my mousewheel only work in a defined area? (wich is an actual clip or maybe a rectangle?)  
thnx peepz!
