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