# MouseEvent.MOUSE\_WHEEL's delta property

**URL:** <https://forum.kirupa.com/t/mouseevent-mouse-wheels-delta-property/239345>\
**Category:** flash\
**Created:** [September 20, 2007, 6:14pm UTC](https://forum.kirupa.com/t/mouseevent-mouse-wheels-delta-property/239345 "2007-09-20T18:14:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grandpaw\_broon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/grandpaw_broon/32/3985_2.png) [@grandpaw\_broon](https://forum.kirupa.com/u/grandpaw_broon)\
**Post date:** [September 20, 2007, 6:14pm UTC](https://forum.kirupa.com/t/mouseevent-mouse-wheels-delta-property/239345/1 "2007-09-20T18:14:22Z")

</div>

Hi!

I am trying to work with eventobject.delta.

I have managed to trace a +3 or -3 in the debug window but my question relations generically to AS.

How do you determine between a positive or negative value?

On my “wheel” i want the “notches” of a mouse wheel to rotation between sections 360/10 = 36 degrees just say.

If delta = +int then i want to Tween the rotation of the wheel plus 36 degrees.  
If delta = -int then i want to Tween the rotation of the wheel minus 36 degrees.

How to say:

if (e.delta == positive number)  
{  
//blah  
}

if (e.delta == negative number)  
{  
//blah  
}

Thanks 😃

EDIT:

I did try

if (e.delta \< 0)  
{  
//blah  
}  
if (e.delta \> 0)  
{  
//blah  
}

But for some reason its givin me undesired results.
