# Controlling timing///need helpl

**URL:** <https://forum.kirupa.com/t/controlling-timing-need-helpl/168940>\
**Category:** flash\
**Created:** [November 11, 2005, 11:28am UTC](https://forum.kirupa.com/t/controlling-timing-need-helpl/168940 "2005-11-11T11:28:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marws](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@marws](https://forum.kirupa.com/u/marws)\
**Post date:** [November 11, 2005, 11:28am UTC](https://forum.kirupa.com/t/controlling-timing-need-helpl/168940/1 "2005-11-11T11:28:26Z")

</div>

Hi everyone,

I have a animation with tweens and I need do have the player stop at a certain frame x number of seconds and play again, I´m trying to use some thing like this to work this out

stop();  
fr = [1, 7, 13, 17];  
for (var i = 0; i\<4; i++) {  
myinterval = setInterval(function () {  
gotoAndPlay(fr);  
clearInterval(myinterval);  
}, 12000);  
}

of course it is not working

the movie should start at frame one and play all the way to , say, frame seven stop there for a few seconds and then play to frame 13 stop there for a while then play again, and so forth

anyone could help me out with this??

Thanks a lot
