# Timer to delay an action

**URL:** <https://forum.kirupa.com/t/timer-to-delay-an-action/197662>\
**Category:** Uncategorized\
**Created:** [August 18, 2006, 1:59am UTC](https://forum.kirupa.com/t/timer-to-delay-an-action/197662 "2006-08-18T01:59:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![llyfre](https://avatars.discourse-cdn.com/v4/letter/l/8c91f0/32.png) [@llyfre](https://forum.kirupa.com/u/llyfre)\
**Post date:** [August 18, 2006, 1:59am UTC](https://forum.kirupa.com/t/timer-to-delay-an-action/197662/1 "2006-08-18T01:59:14Z")

</div>

Hello,

I’m working with flash 8 and I have a 100sec soundclip that plays with the images at 12fps. Problem is the sound invariably ends before the images. I don’t mind sound/image being out of synch -I just want the images to cut off regardless of where they are when the sound ends. Any suggestions?

I wonder if it is possible to create a kind of an actionScript timer that counts actual seconds rather than # of frames so that after pausing/sleeping/waiting 100sec’s, the action gotoAndPlay(frame label) is executed. Is this possible or is there a better way around the problem?

Any help would be greatly appreciated.

-Llyfre
