Skip to main content
Participant
April 23, 2007
Question

How to detect mouse wheel speed?

  • April 23, 2007
  • 3 replies
  • 216 views
I'd like to add a visual effect to a movie clip which is dependent upon the direction that a user rotates the mouse wheel and the speed at which it's rotated. I've been looking at the onScroller handler, but I'm guessing that some sort of timing function is needed...?

Any help is appreciated!
This topic has been closed for replies.

3 replies

April 23, 2007
Negligable overhead as the timer is already running, and you're using the listener method/Observer design and not polling every interval but reacting to the user input.
ThragmosAuthor
Participant
April 23, 2007
OK, I'll try this, dr_ross. I'm also wondering how much overhead does the timer add?

Many thanks!
April 23, 2007
You could do something quick and dirty like this and then use the time in millseconds passed to alter your effect dynamically