import mx.events.ValidationResultEvent;
private function invalidHandler(event:ValidationResultEvent):void {
usernameItem.label = "-=Name=-";
}
private function validHandler(event:ValidationResultEvent):void {
usernameItem.label = "Name";
}