When we are using built in validation , if validation fails i want to
change the color of the text , can any one help in this regard


This is assuming that validator2.source is a TextInput.

           var resultEvent:ValidationResultEvent = validator2.validate();
           
            if (resultEvent.type != ValidationResultEvent.VALID )
                validator2.source.setStyle("color", "0xff0000");



--
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




Reply via email to