Mega Code Archive
Register myToolTipChanger() method as a listener for the Button controls toolTipShow event
import mx.managers.ToolTipManager;
import mx.controls.ToolTip;
import mx.events.ToolTipEvent;
import mx.core.FlexGlobals;
public function initApp():void {
b1.addEventListener(ToolTipEvent.TOOL_TIP_SHOW, myToolTipChanger)
}
public function myToolTipChanger(event:ToolTipEvent):void {
/* Pass the value of myName in to your application as a flashVars variable.
For example, on the query string. */
ToolTipManager.currentToolTip.text = "Click the button, " + FlexGlobals.topLevelApplication.parameters.myName;
}