# A countdown timer than when finished, takes you to a different frame

**URL:** <https://forum.kirupa.com/t/a-countdown-timer-than-when-finished-takes-you-to-a-different-frame/328791>\
**Category:** flash\
**Created:** [June 17, 2012, 2:31pm UTC](https://forum.kirupa.com/t/a-countdown-timer-than-when-finished-takes-you-to-a-different-frame/328791 "2012-06-17T14:31:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Profitemole](https://avatars.discourse-cdn.com/v4/letter/p/f08c70/32.png) [@Profitemole](https://forum.kirupa.com/u/Profitemole)\
**Post date:** [June 17, 2012, 2:31pm UTC](https://forum.kirupa.com/t/a-countdown-timer-than-when-finished-takes-you-to-a-different-frame/328791/1 "2012-06-17T14:31:36Z")

</div>

EDIT: \*that when finished  
EDIT2: I have found a solution, sorry!

I don’t really know what I’m doing with this timer, so I put together a few mismatched pieces of code hoping it would work, but it doesn’t here’s what I’ve got:

var fl\_TimerInstance:Timer = new Timer(1000, 10);  
fl\_TimerInstance.addEventListener(TimerEvent.TIMER, fl\_TimerHandler);  
fl\_TimerInstance.start();

var fl\_SecondsElapsed:Number = 1;

function fl\_TimerHandler(event:TimerEvent):void  
{  
trace("Seconds elapsed: " + fl\_SecondsElapsed);  
fl\_SecondsElapsed++;  
}

function goOOT(e) {  
gotoAndStop(761);  
}

setTimeout(goOOT, 10\*1000);

I get the error:  
ArgumentError: Error #1063: Argument count mismatch on ZombieGame35\_fla::MainTimeline/goOOT(). Expected 1, got 0.  
at Function/[http://adobe.com/AS3/2006/builtin::apply()](http://adobe.com/AS3/2006/builtin::apply())  
at SetIntervalTimer/onTimer()  
at flash.utils::Timer/\_timerDispatch()  
at flash.utils::Timer/tick()

Basically, I want to go to frame 761 after 10 seconds. Could anyone please help?
