I am the new one for flex 4. In my sample application, I am using validator. It display's the error message and icon at beside's of the control. My question is, How to remove these error message and error icon? And I want to display my error message as a errorTip when the mouse is over the particular control.
Thank you.
Edit
My sample code. I am using this with some other controls
<fx:Declarations>
<mx:StringValidator id="nameValidator"
source="{employeeName}"
property="text"
tooLongError="Too long error"
tooShortError="Too short error"
maxLength="20" minLength="4"/>
</fx:Declarations>
<s:layout>
<s:VerticalLayout/>
</s:layout>
<mx:HDividedBox>
<s:Panel>
<s:Form>
<s:FormItem>
<s:TextInput id="employeeName"/>
</s:FormItem>
<s:FormItem>
<s:TextInput id="employeeID"/>
</s:FormItem>
</s:Form>
</s:Panel>
</mx:HDividedBox>
This code display the error message with error icon.
And
<fx:Declarations>
<mx:StringValidator id="nameValidator"
source="{employeeName}"
property="text"
tooLongError="Too long error"
tooShortError="Too short error"
maxLength="20" minLength="4"/>
</fx:Declarations>
<s:layout>
<s:VerticalLayout/>
</s:layout>
<mx:HDividedBox>
<s:Panel>
<s:Form>
<s:TextInput id="employeeName" />
<s:TextInput id="employeeID" />
</s:Form>
</s:Panel>
</mx:HDividedBox>
This code doesn't display the error icon and error message. And it display only the error tip when mouse is over the TextInput control. I want this error tip for my code.
Update
<mx:StringValidator
id="userName"
source="{employeeName}"
property="text"
minLength="4" maxLength="20"
triggerEvent="rollOver"
trigger="{employeeName}"/>
<s:layout>
<s:VerticalLayout/>
</s:layout>
<mx:HDividedBox>
<s:Panel>
<s:Form>
<s:FormItem>
<mx:HBox>
<s:TextInput id="employeeName"/>
</mx:HBox>
</s:FormItem>
<s:FormItem>
<s:TextInput id="employeeID"/>
</s:FormItem>
</s:Form>
</s:Panel>
</mx:HDividedBox>
Now I did this.
My Current Output is first picture , And the second one is I need: