Actionscript 3, flexSDK, Blocking mouse wheel scrolling when it's over flash stage?

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

I searched for this a lot, but I couldn't find a solution for this 'bug' as it's called here: fcontheweb.com/articles/scrollwheel/ Please, click on first flash, and use mouse wheel, then click on second flash and use mouse wheel again. Now You know perfectly what 'bug' I mean. The thing is, I believe this bug can be solved WITHOUT externalinterface.

This chat is made with AS 3: kongregate.com/games/UnknownGuardian/gam... Open 'codebox', hold ENTER to make a hundred of lines or so, and then test your mouse wheel. It doesn't use any externalinterface technique (both obviously as it's Kongregate, and confirmed by author), just mx.component. TextArea that itself implements the scrolling nicely.

I couldn't achieve that with even. PreventDefault or stopPropagation. Any ideas?

Thanks in advance! E: Thank You, divillysausages! The question still isn't answered in 1% - what is textArea component's workaround?

Actionscript-3 mouse mousewheel wheel link|improve this question edited Jan 14 at 19:35 asked Jan 14 at 13:18Markus von Broady83.

I think the TextArea just has this sort of behaviour built in. I'm not sure what workaround they're using, if one – divillysausages Jan 15 at 15:57 You are probably right, I couldn't find anything in TextArea source. – Markus von Broady Jan 18 at 14:19.

There's two methods proposed here: gamedev.rasmuswriedtlarsen.com/2010/01/1..., but only the first one works on Kongregate Apparently it uses ByteArray and LocalConnection to construct an AS2 swf that stops most browsers getting the scroll event.

It works! And it was so easy to implement (but not easy to create the MouseWheel class probably)! Thank You, kind sir!

– Markus von Broady Jan 14 at 19:32.

There's two methods proposed here: http://gamedev.rasmuswriedtlarsen.com/2010/01/18/quicktip-scrolling-only-in-swf-not-on-page but only the first one works on Kongregate.

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