sharky79
09-24-2007, 06:23 PM
hi,
i wrote a custom validation manger that has a deactivate function that looks like this:
public function deactivate():void {
for each(var v:Validator in validators) {
if (v.source && v.source is UIComponent) {
v.source.errorString = null;
}
}
}
the meaning of this function is to remove the red borders from the validated components (by inserting null to the error string).
my problem is that all my textInputs that had blue border, after the deactivate have black border.
why is that? how can it be fixed?
thanks.
i wrote a custom validation manger that has a deactivate function that looks like this:
public function deactivate():void {
for each(var v:Validator in validators) {
if (v.source && v.source is UIComponent) {
v.source.errorString = null;
}
}
}
the meaning of this function is to remove the red borders from the validated components (by inserting null to the error string).
my problem is that all my textInputs that had blue border, after the deactivate have black border.
why is that? how can it be fixed?
thanks.