# Pause playback head

**URL:** <https://forum.kirupa.com/t/pause-playback-head/228455>\
**Category:** Uncategorized\
**Created:** [June 7, 2007, 10:41pm UTC](https://forum.kirupa.com/t/pause-playback-head/228455 "2007-06-07T22:41:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gpdesigner](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@gpdesigner](https://forum.kirupa.com/u/gpdesigner)\
**Post date:** [June 7, 2007, 10:41pm UTC](https://forum.kirupa.com/t/pause-playback-head/228455/1 "2007-06-07T22:41:14Z")

</div>

Hello . . .  
Don’t use flash too much anymore so I am kinda lost . . .  
I am trying to pause the playback head for 5 secs or so then start it up again . .

I am using MX6 my script looks like this

stop();  
var timer:Number = setInterval(done,5000);  
function done():void {  
clearInterval(timer);  
play();  
}

when I save and publish I get error codes

Scene=Scene 1, Layer=actions, Frame=24: Line 3: ‘{’ expected  
function done():void {

Scene=Scene 1, Layer=actions, Frame=24: Line 6: Unexpected ‘}’ encountered  
}

can’t seem to find what’s wrong . . I know it is something simple but I don’t see it.  
gp
