Thank you, that worked well
timgerr

--- In flexcoders@yahoogroups.com, "Tim Hoff" <timh...@...> wrote:
>
> 
> Here's a simple way:
> 
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="absolute">
> 
> <mx:Script>
>       <![CDATA[
>            public function turnOff(e:Event):void
>            {
>                 sv.enabled = false;
>                 test.errorString = "";
>            }
> 
> 
> 
>            public function turnOn(e:Event):void
>            {
>                 sv.enabled = true;
>            }
>       ]]>
> </mx:Script>
> 
> <mx:TextInput id="test"/>
> 
> <mx:Button top="60" label="Turn Off" click="turnOff(event)"/>
> 
> <mx:Button top="60" left="100" label="Turn On" click="turnOn(event)"/>
> 
> <mx:StringValidator id="sv" required="true" source="{test}"
> property="text" enabled="true"/>
> 
> </mx:Application>
> 
> -TH
> 


Reply via email to