Having an error in adobe animation its a syntax error with tooltips
For some reason we can not get this code to work correctly any ideas? this is adobe animation 2021
import flash.system.Worker;
tooltip._visible = false;
var tipInt;
//sets timer so that tooltip only shows up after a little bit
var tooltip: tempint tooltip. = new tooltip();
strBtn.onRollOver=function(){
tipInt= setInterval(showTip,100,"This is how many points you have put into your strength attribute. This stat is relevant for strength based weapons and tasksinvolving physical exertion");
}
//immediately removes tooltips once cursor is no longer over the button
strBtn.onRollOut = function(){
hideTip();
}
var count=0;
//shows dynamic text and textbox
function showTip(tiptext){
if(count==5){
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;
}
