Are you sure that you are looking for the children in the correct parent? Worked for me.
-TH --- In [email protected], Laurence MacNeill <lmacne...@...> wrote: > > At 05:13 PM 5/18/2009, you wrote: > > > >Why not stop and return when validForm just turns false, like this: > > > >On Mon, May 18, 2009 at 5:54 PM, Tim Hoff > ><<mailto:[email protected]@... wrote: > > > > > >import > >mx.core.UIComponent; > > > >private function formIsValid():Boolean > >{ > > > > for (var i:int = 0; i < this.numChildren; i++) > > { > > if ( UIComponent(this.getChildAt(i)).errorString != "" ) > > { > > return false; > > } > > } > > > > return true; > >} > > > Doesn't work for me, either way, unfortunately... For some reason > it's not returning false when there are errorStrings... It's > allowing the form to submit, even though I can clearly see the red > border(s) around the textInput(s). > > Any ideas? >

