Controlling timing///need helpl

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