please help with timout code. I'm under deadline.
i have timeline stops on frame full of flv playback components. need frame listen mouse clicks , after no mouse clicks 2-3 minutes need gotoandplay frame 1. long viewer keeps clicking on video controls need keep reseting timer.
i have looked on trying find on , got forum it's not woking need to. i'm hoping have ready tradeshow in couple of days.
any appreciated.
ff
i have looked on trying find on , got forum it's not woking need to. i'm hoping have ready tradeshow in couple of days.
any appreciated.
ff
i've added code on video page frame , works need disable after goto frame 1 or else meets criteria goto again loops around , gets video page frame , goes frame 1 without showing video page frame without 120 sec check mouse movement.
how disable code on frame 1 , let work again when timeline gets video page frame again.
t=120; // 120 seconds inactivity triggers return frame 1
clearinterval(inactivei); // <-- new statement
inactivei=setinterval(inactivef,1000*t);
function inactivef(){
_root.gotoandplay(1);
}
_root.onmousemove=function(){
clearinterval(inactivei);
inactivei=setinterval(inactivef,1000*t);
how disable code on frame 1 , let work again when timeline gets video page frame again.
t=120; // 120 seconds inactivity triggers return frame 1
clearinterval(inactivei); // <-- new statement
inactivei=setinterval(inactivef,1000*t);
function inactivef(){
_root.gotoandplay(1);
}
_root.onmousemove=function(){
clearinterval(inactivei);
inactivei=setinterval(inactivef,1000*t);
More discussions in Adobe Animate CC - General
adobe
Comments
Post a Comment