Show and hide tooltip with effect : Show Hide Effect « Effects « Flex






Show and hide tooltip with effect

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

1.Add hide effect to a controlAdd hide effect to a control
2.ShowEffect and HideEffect for Canvas inside a ViewStackShowEffect and HideEffect for Canvas inside a ViewStack
3.Show/hide as the effect TriggerShow/hide as the effect Trigger
4.show/hide effectshow/hide effect