I would capture MOUSE_WHEEL and call stopImmediatePropagation.

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Jayson
Sent: Wednesday, September 05, 2007 2:37 PM
To: [email protected]
Subject: [flexcoders] Disable scrolling via mouse wheel



Here's my situation.

I have a TextArea that is filled with text(more text than can be 
displayed). I have the scroll bars removed so that you can not scroll 
with them, but you can still scroll with the mouse wheel. How can I 
disable this? I've tried a number of things but nothing seems to be 
working.

I'm thinking I need an event listener, and a function needs to be 
performed on ScrollEvent.SCROLL, but what would it be? TextArea doesn't 
have scrollPosition, so I can't do myTextArea.scrollPosition = 0; or 
whatever it would be.

Any ideas?

Thanks,

Jayson



 

Reply via email to