Alex Harui
Thu, 06 Sep 2007 12:02:03 -0700
package
{
import mx.controls.TextArea;
public class JaysonTextArea extends TextArea
{
override protected function createChildren():void
{
super.createChildren();
textField.mouseWheelEnabled = false;
}
}
}
-----------------
<mx:Application xmlns:mx=http://www.adobe.com...." xmlns:local="*" ....
/>
<local:JaysonTextArea ..... />
________________________________ From: flexcoders@yahoogroups.com [EMAIL PROTECTED] On Behalf Of Jayson Sent: Thursday, September 06, 2007 11:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Disable scrolling via mouse wheel That makes sense. However, I'm not sure how to go about that.. haha. If you could point me in the right direction, I'd appreciate it. Thanks. --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" <[EMAIL PROTECTED]> wrote: > > I just realized that the player takes care of mousewheel over textfields > and not the Flex framework which is why event blocking isn't going to > work. > > You can subclass TextArea, get to the underlying textField and set > mouseWheelEnabled=false. > > > ________________________________ > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of Jayson > Sent: Thursday, September 06, 2007 11:33 AM > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > Subject: [flexcoders] Re: Disable scrolling via mouse wheel > > > > Just tried those out.. still no luck.. I'm beginning to think this > isn't going to work. > > I didn't know about the useCapture and priority for event listeners.. > thought that was going to work. > > I don't really want to have to cut the string so it doesn't extend out > of the TextArea because I use it other places, that seems like it would > be a pain in the ass. > > Do you think this might be an issue of timing? like the eventListener > isn't being added in time? > > I've tried calling it in creationComplete(for the TextArea and app), > scroll, and mouseWheel. >