Controlling mousewheel events flash?

Up vote 1 down vote favorite share g+ share fb share tw.

I'm working on a menu system in flash. If the mousewheel scrolls up each menu item shift up and visa versa for mouse wheel scrolling down. The problem I have is there seems to be multiple "steps" going on.

In my mouse wheel handler I trace out the text "wheel" to test. If I mouse the mouse wheel just once "wheel" gets traced out twice. So for every one mouse wheel move my handler is being called twice and thus the scrolling of my menu always skips an item.

Any tips? Flash actionscript-3 mousewheel link|improve this question asked Feb 22 '10 at 0:03dubbeat1,01111042 93% accept rate.

MouseListener = new Object(); mouseListener. OnMouseWheel = function(delta) { // La la la do stuff here } Mouse. AddListener(mouseListener); Something like that should be sufficient and not trigger multiple times.

In my menu class that extends MovieClip I have just added addEventListener(mouseEvent. MouseWheel,myFuntion). It's peculiar alright.

I'm developing on a laptop with a mouse plugged in. Maybe that has something to do with it? – dubbeat Feb 22 '10 at 8:43 Try adding a general listener for Mouse events and add the onMouseWheel qualifier on the listener function as shown above.

It's working for me without issue and I work on a laptop with external mouse/keyboard. – FerretallicA Feb 22 '10 at 23:59 This is not an acceptable answer for this question; for one thing, the code posted is in the wrong language and will not work in ActionScript 3. – Cory Petosky Apr 16 '10 at 1:58.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions