# Timer Problem

**URL:** https://forum.kirupa.com/t/timer-problem/176885
**Category:** flash
**Created:** [January 27, 2006, 6:05pm UTC](https://forum.kirupa.com/t/timer-problem/176885 "2006-01-27T18:05:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Aurumlupus](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@Aurumlupus](https://forum.kirupa.com/u/Aurumlupus)
#### Post date: [January 27, 2006, 6:05pm UTC](https://forum.kirupa.com/t/timer-problem/176885/1 "2006-01-27T18:05:26Z")

</div>

I`m using the code I found on here:

//stops the timeline  
stop();  
// moveOUT in ? seconds  
function moveOUT() {  
gotoAndPlay(“2”);  
}  
//4000 means 4 seconds .  
setTimeout(this, ‘moveOUT’, 2000);

but the timer doesnt work all of the time. I will change the seconds and some work some dont. Is there another method that works better? or is there something wrong with the code as I`m using Flash 8? Thanks,
