# Frame control on mouseover/click (urgent)

**URL:** <https://forum.kirupa.com/t/frame-control-on-mouseover-click-urgent/288663>\
**Category:** flash\
**Created:** [May 19, 2009, 3:06pm UTC](https://forum.kirupa.com/t/frame-control-on-mouseover-click-urgent/288663 "2009-05-19T15:06:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshcaple](https://avatars.discourse-cdn.com/v4/letter/j/d9b06d/32.png) [@joshcaple](https://forum.kirupa.com/u/joshcaple)\
**Post date:** [May 19, 2009, 3:06pm UTC](https://forum.kirupa.com/t/frame-control-on-mouseover-click-urgent/288663/1 "2009-05-19T15:06:16Z")

</div>

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

```auto
 
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();

```
