I have looked all over, but I cannot find an example of this. I have a kiosk movie, and I want it to return to Frame 1 if no one uses it for a couple minutes. Does anyone have any idea how to do this? Your help would be appreciated.
I`m not sure what a kiosk movie is, but something like this might work
function init() {
oldX = this._xmouse;
oldY = this._ymouse;
}
init();
function checkMousemove() {
if (this._xmouse == oldX && this._ymouse == oldY) {
clearInterval(myInterval);
gotoAndStop(1);
} else {
oldX = this._xmouse;
oldY = this._ymouse;
//you might want to clearInterval here and put the setInterval in a startbutton press or something.
}
}
myinterval = setInterval(checkMousemove, 120000);
Creating engaging and entertaining content for designers and developers since 1998.