There's an "editable" tag for TextInput, so just put in:

editable="false"

and you will then, in effect, have a read only TextInput

-Luke

On Fri, Aug 28, 2009 at 6:05 PM, David <[email protected]> wrote:

> I want to make a TextInput read-only without using enabled="false"
> Tried the following and it didn't work.
> Ideas?
> ===
> <mx:Script>
> <![CDATA[
>        private function ignoreEvent(event:Event=null):void{
>                event.stopImmediatePropagation();
>        }
> ]]>
> </mx:Script>
>
> <mx:TextInput mouseDown="ignoreEvent(event)"
> mouseUp="ignoreEvent(event)" click="ignoreEvent(event)"
> keyDown="ignoreEvent(event)" keyUp="ignoreEvent(event)" text="This
> should be uneditable"/>
> ===
> Thanks!
>
> -David
>
>
> -------------------------------------------------------------
> To unsubscribe from this list, simply email the list with unsubscribe in
> the subject line
>
> For more info, see http://www.affug.com
> Archive @ http://www.mail-archive.com/discussion%40affug.com/
> List hosted by http://www.fusionlink.com
> -------------------------------------------------------------
>
>
>

Reply via email to