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: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Jayson
Sent: Thursday, September 06, 2007 11:56 AM
To: [email protected]
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 [email protected] <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: [email protected] <mailto:flexcoders%40yahoogroups.com>

[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of Jayson
> Sent: Thursday, September 06, 2007 11:33 AM
> To: [email protected] <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.
>



 

Reply via email to