no luck.. heres what i did.. public function wheelStop():void{ myTextArea.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler); }
public function mouseWheelHandler(event:MouseEvent):void{ event.stopImmediatePropagation(); } and I called wheelStop() in the creationComplete function and also tried it in mouseWheel & scroll in the TextArea, none worked.. also tried myTextArea.addEventListener(ScrollEvent.SCROLL, mouseScrollHandler); public function mouseWheelHandler(event:ScrollEvent):void{ event.stopImmediatePropagation(); } am i doing something wrong? --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > I would capture MOUSE_WHEEL and call stopImmediatePropagation. > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Jayson > Sent: Wednesday, September 05, 2007 2:37 PM > To: flexcoders@yahoogroups.com > 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 >