Try:
 
// capture phase
myTextArea.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler,
true);
 
or
 
// higher priority
myTextArea.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler,
false, 100);

________________________________

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



Not working..

Heres what I did..

public function wheelStop():void{
myTextArea.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler);
}

public function mouseWheelHandler(event:MouseEvent):void{
event.stopImmediatePropagation();
}

I tried calling wheelStop() at creationComplete, and also in mouseWheel 
in the TextArea.. neither worked.

Do I have something wrong?



 

Reply via email to