Remove a tooltip with ToolTipManager : ToolTipManager « Components « Flex






Remove a tooltip with ToolTipManager

Remove a tooltip with ToolTipManager
      

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
    import mx.managers.ToolTipManager;
    import mx.controls.ToolTip;
    public var myTip:ToolTip;

    private function createBigTip():void {
       var s:String = "tooltip";
       myTip = ToolTipManager.createToolTip(s,10,10) as ToolTip;
       myTip.setStyle("backgroundColor",0xFF0000);
       myTip.width = 200;
       myTip.height = 200;
    }
    private function destroyBigTip():void {
       ToolTipManager.destroyToolTip(myTip);
    }
  </mx:Script>
    <mx:Panel rollOver="createBigTip()" rollOut="destroyBigTip()">
        <mx:Button label="OK" toolTip="this is a test"/>
    </mx:Panel>
</mx:Application>

   
    
    
    
    
    
  








Related examples in the same category

1.Enable tooltip with ToolTipManagerEnable tooltip with ToolTipManager
2.Set tooltip show delay with ToolTipManagerSet tooltip show delay with ToolTipManager
3.Set tooltip hide delay with ToolTipManagerSet tooltip hide delay with ToolTipManager
4.Change value of ToolTipManager.currentToolTip.text to a valueChange value of ToolTipManager.currentToolTip.text to a value
5.Create Tooltip with ToolTipManagerCreate Tooltip with ToolTipManager
6.Use ToolTipManager to create an error tipUse ToolTipManager to create an error tip
7.Set time that a tool tip is visible with ToolTipManagerSet time that a tool tip is visible with ToolTipManager
8.Use Application's initialize event to set the starting values for the ToolTipManagerUse Application's initialize event to set the starting values for the ToolTipManager