PDA

View Full Version : validator graphic problem


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.

drkstr
09-26-2007, 06:25 AM
Could be a bug. You might need to use the getStyle and setStyle methods to store and reapply the previous style settings.

Best Regards,
...aaron

sharky79
09-29-2007, 10:47 PM
thanks