Ah, great! For some reason I read in your question "enabled" as "editable". Glad it worked!
On Fri, Aug 28, 2009 at 6:22 PM, David <[email protected]> wrote: > No, that's actually perfect- just what I was looking for. > I just didn't want to use enabled. > Thanks! > > -David > > On Fri, Aug 28, 2009 at 6:12 PM, Lucas Golden<[email protected]> wrote: > > Doh, I compltely missed the first part of my question. Just ignore me > > now... > > > > -Luke > > > > On Fri, Aug 28, 2009 at 6:11 PM, Lucas Golden <[email protected]> > wrote: > >> > >> 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 > >>> ------------------------------------------------------------- > >>> > >>> > >> > > > > > > > ------------------------------------------------------------- > 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 > ------------------------------------------------------------- > > >
