TextInput focus in and focus out events
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
verticalAlign="middle"
horizontalAlign="center"
height="100"
width="300">
<mx:Script>
import mx.controls.ToolTip;
import mx.managers.ToolTipManager;
private var tip:ToolTip;
private function showTip(event:Object):void {
tip = ToolTipManager.createToolTip("s",
event.currentTarget.x + event.currentTarget.width + 10,
event.currentTarget.y)as ToolTip;
}
private function destroyTip(event:Object):void {
ToolTipManager.destroyToolTip(tip);
}
</mx:Script>
<mx:TextInput id="a1" width="100" focusIn="showTip(event)" focusOut="destroyTip(event)"/>
</mx:Application>
Related examples in the same category