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.