Answered
Tool Tip Help?
Hi, Ive made a tool tip (note) that appears when the mouse
passes over a button. at the moment the tooltip appears instantly
when the user rolls the mouse over the button and dissapears when
the mouse rolls out (this is how i want it to work) I also have the
tooltip following the mouse when it moves whilst in the button. The
movement is instant, i wondered if it was possible to have a short
delat between the movement of the mouse and the tooltip, so it
eases in slowly to the movement of the mouse?? below is the code im
using, any help would be wicked. Thanks for any help Ad.
tooltip._visible = false;
var tipInt;
b1.onRollOver = function() {
tipInt = setInterval(showTip,100,"Button 1");
}
b1.onRollOut = function() {
hideTip();
}
var count = 0;
function showTip(tiptext) {
if (count == 0) {
clearInterval(tipInt);
count = 0;
tooltip.tiptext.text = tiptext;
tooltip._x = _root._xmouse;
tooltip._y = _root._ymouse;
tooltip._visible = true;
_root.onMouseMove = function() {
tooltip._x = _root._xmouse;
tooltip._y = _root._ymouse;
updateAfterEvent();
};
} else {
count++;
}
}
function hideTip() {
clearInterval(tipInt);
tooltip._visible = false;
delete _root.onMouseMove;
}
tooltip._visible = false;
var tipInt;
b1.onRollOver = function() {
tipInt = setInterval(showTip,100,"Button 1");
}
b1.onRollOut = function() {
hideTip();
}
var count = 0;
function showTip(tiptext) {
if (count == 0) {
clearInterval(tipInt);
count = 0;
tooltip.tiptext.text = tiptext;
tooltip._x = _root._xmouse;
tooltip._y = _root._ymouse;
tooltip._visible = true;
_root.onMouseMove = function() {
tooltip._x = _root._xmouse;
tooltip._y = _root._ymouse;
updateAfterEvent();
};
} else {
count++;
}
}
function hideTip() {
clearInterval(tipInt);
tooltip._visible = false;
delete _root.onMouseMove;
}