hey,
I have a problem with an inactivity timer. I want a warning message to appear if a user is inactive with mouse movement for a period of time. The function itself does work, i tested it with the “trace” tag…
I want a Movieclip: “inactivitywarning” wich has the alpha of 0 to fade to 100% and a message will appear…
it does not work! where’s my mistake (the path to the MC is correct)?:
var inactiveTime = 5000;// 5 seconds
function tooLong(){
inactivitywarning.alphaTo(100, 0.5, "easeOutSine",0);
}
var intrvl = setInterval(tooLong, inactiveTime);
onMouseMove = function(){
clearInterval(intrvl);
intrvl = setInterval(tooLong, inactiveTime);
}
Key.addListener(this);