Show and hide tooltip with effect
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
initialize="initializeHandler(event)">
<mx:Script>
import mx.managers.ToolTipManager;
private function initializeHandler(event:Event):void {
ToolTipManager.showEffect = toolTipShowEffect;
ToolTipManager.hideEffect = toolTipHideEffect;
}
</mx:Script>
<mx:Parallel id="toolTipShowEffect">
<mx:Fade alphaFrom="0" alphaTo="1" duration="1000" />
<mx:Blur blurXFrom="10" blurYFrom="10" blurXTo="0" blurYTo="0" duration="1000" />
</mx:Parallel>
<mx:Parallel id="toolTipHideEffect">
<mx:Fade alphaFrom="1" alphaTo="0" duration="1000" />
<mx:Blur blurXFrom="0" blurYFrom="0" blurXTo="10" blurYTo="10" duration="1000" />
</mx:Parallel>
<mx:Button id="button" toolTip="Tool Tip Effect Example" />
</mx:Application>
Related examples in the same category