I’ve been brought in at the last minute to finish off someone elses code on a project and having some trouble getting something to work…
The following is from an AS3 applet which slides 4 panels, populated with photos & links from the CMS. I need the timer to pause & reset when I rollover the tab that is open at the time. I onlny have a couplle hours to figure this out!
Thanks for your help,
J
var tempo:Timer = new Timer(7000);
tempo.addEventListener(TimerEvent.TIMER, nextTAB);
function nextTAB(evt:TimerEvent):void
{
switch (superID)
{
case 1 :
moveTAB2();
break;
case 2 :
moveTAB3();
break;
case 3 :
moveTAB4();
break;
case 4 :
moveTAB2();
break;
}
}
function resetLoopTAB()
{
tempo.stop();
timer_preload.gotoAndPlay(1);
tempo.start();
}
tempo.start();