import mx.core.UIComponent;
private function formIsValid():Boolean
{
var validForm:Boolean = true;
for (var i:int = 0; i < this.numChildren; i++)
{
if ( UIComponent(this.getChildAt(i)).errorString != "" )
{
validForm = false;
}
}
return validForm;
}
-TH
--- In [email protected], "sminrana" <sminr...@...> wrote:
>
> first you trying to use numChildren as a method but it is not it is a
> property which return int value and it is read-only so remove the ()
in the loop
>
> second what is errorString ???
>