# setInterval and sound problem

**URL:** <https://forum.kirupa.com/t/setinterval-and-sound-problem/134069>\
**Category:** Uncategorized\
**Created:** [January 14, 2005, 10:37am UTC](https://forum.kirupa.com/t/setinterval-and-sound-problem/134069 "2005-01-14T10:37:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yossarian](https://avatars.discourse-cdn.com/v4/letter/y/9de0a6/32.png) [@yossarian](https://forum.kirupa.com/u/yossarian)\
**Post date:** [January 14, 2005, 10:37am UTC](https://forum.kirupa.com/t/setinterval-and-sound-problem/134069/1 "2005-01-14T10:37:45Z")

</div>

Does anyone know how I can use a timer function (setInterval?) so that when the music stops a **Time’s Up** message appears and the movie goes to the next frame…any ideas?

I’ve been trying to use setInterval but it I can’t seem to link it with when the sound stops…If anyone can point me in the right direction I’d be eternally grateful! ![](http://forum.kirupa.com/uploads/kirupa/998/5141ac815ee1257c.gif)

Yossi
