I think you do it like this.
private function saveItem(item:Object):void
{
// array of validators to check before form is
submitted
var validators:Array = [];
validators[0] = this.v0;
validators[1] = this.v1;
validators[2] = this.v2;
validators[3] = this.v3;
validators[4] = this.v4;
validators[5] = this.v5;
validators[6] = this.v6;
validators[7] = this.v7;
validators[8] = this.v8;
validators[9] = this.v9;
validators[10] = this.v10;
var inValidResults:Array =
Validator.validateAll(validators);
if( inValidResults.length == 0 )
{
this.dataManager.save(item);
}
}
Hope this helps,
Rich
--- In [email protected], "santharao246" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
> we are in the process of migrating from 1.5 to 2.0
> in flex1.5, we used to specify handler for validation using the
> validate event of the validator class.
>
> in flex2, the validator has only valid and invalid events. how to go
> about migrating this. please help to resolve this.
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/