Change value of ToolTipManager.currentToolTip.text to a value : ToolTipManager « Components « Flex






Change value of ToolTipManager.currentToolTip.text to a value

Change value of ToolTipManager.currentToolTip.text to a value
      
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" initialize="initApp()">
    <mx:Script>
    import mx.managers.ToolTipManager;
    import mx.controls.ToolTip;
    import mx.events.ToolTipEvent;
    
    public function initApp():void {
    
        b1.addEventListener(ToolTipEvent.TOOL_TIP_SHOW, myToolTipChanger)
    
    }
    
    public function myToolTipChanger(event:ToolTipEvent):void {
    
        ToolTipManager.currentToolTip.text = "Click the button, " + Application.application.parameters.myName;
    
    }
   </mx:Script>
    <mx:Button id="b1" label="Click Me" toolTip="Click the button"/>
</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.Create Tooltip with ToolTipManagerCreate Tooltip with ToolTipManager
5.Remove a tooltip with ToolTipManagerRemove a 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