Full Source
Here is what the callLater() looks like:
...
// display errorTip
if (showErrorsImmediately &&
currentControlIsValid == false &&
supressEvents == false)
{
// cast the focussed control to a UIComp to use callLater
var ffc:UIComponent = focusedFormControl as UIComponent;
ffc.callLater(showDeferred, [focusedFormControl]);
}
return currentControlIsValid;
}
private function showDeferred(target:DisplayObject):void {
target.dispatchEvent(new MouseEvent(MouseEvent.MOUSE_OUT));
target.dispatchEvent(new MouseEvent(MouseEvent.MOUSE_OVER));
}
No comments:
Post a Comment