It does, but TextArea extends Sprite, not TextField.  It uses the 
UITextField via composition.  Unfortunately (or fortunately?) the textField 
variable is protected.  Additionally, the textField is selectable by 
default.  You could do:

package
{
    import mx.controls.TextArea;

    class MyTextArea extends TextArea
    {
        protected override function createChildren():void
        {
            super.createChildren();
            textField.selectable = false;
        }
    }
}

And then use <view:MyTextArea /> instead.

----- Original Message ----- 
From: "jpc14_99" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, July 25, 2006 2:03 PM
Subject: [flexcoders] Re: has anyone ever disabled selectability for a 
textArea??


Thanks.  That does make the textArea unselectable but unfortunately
it also wipes out my background color and text color.  For the life
of me I don't understand why Flex doesn't have a simple selectable
attribute included with textArea.


--- In [email protected], "Doug Lowder" <[EMAIL PROTECTED]>
wrote:
>
> Try this:
>
> <mx:TextArea enabled="false" disabledColor="0x333333"
>     text="Some text" />
>
>
> --- In [email protected], JClouz <jclouser@> wrote:
> >
> > I'm sorry to be a bother but this seems like it should be so easy
> but its driving me nuts.
> >
> > I want to get rid of selectability/i-beam mouseover cursor on a
> textArea field.
> >
> > With a Text component, you just set. myText.selectability = false.
> >
> > How do I do it for a textArea field?  Can it be done?  I want to
> use textArea instead of text because I need a background.
> >
> > Please help!!!
> >
> > Thanks so much.
> >
> > Jamie
> > MKCNSC, inc.
> >
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/WktRrD/lOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to