# Use javascript to check the current frame

**URL:** <https://forum.kirupa.com/t/use-javascript-to-check-the-current-frame/249420>\
**Category:** flash\
**Created:** [January 18, 2008, 3:10pm UTC](https://forum.kirupa.com/t/use-javascript-to-check-the-current-frame/249420 "2008-01-18T15:10:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![itsrick](https://avatars.discourse-cdn.com/v4/letter/i/85f322/32.png) [@itsrick](https://forum.kirupa.com/u/itsrick)\
**Post date:** [January 18, 2008, 3:10pm UTC](https://forum.kirupa.com/t/use-javascript-to-check-the-current-frame/249420/1 "2008-01-18T15:10:05Z")

</div>

Hi all. I need to use javascript to check the current frame of a movie that is playing in a loop. The movie has a stop action on it and I can’t add any more code to it than that. Is there a way to have javascript check the current frame every couple seconds? My problem is actually a little more complicated than I am explaining but that is the gist of it. Thanks.
