# Creating an event handler per frame in video

**URL:** <https://forum.kirupa.com/t/creating-an-event-handler-per-frame-in-video/275854>\
**Category:** flash\
**Created:** [November 19, 2008, 1:51pm UTC](https://forum.kirupa.com/t/creating-an-event-handler-per-frame-in-video/275854 "2008-11-19T13:51:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OML](https://avatars.discourse-cdn.com/v4/letter/o/5e9695/32.png) [@OML](https://forum.kirupa.com/u/OML)\
**Post date:** [November 19, 2008, 1:51pm UTC](https://forum.kirupa.com/t/creating-an-event-handler-per-frame-in-video/275854/1 "2008-11-19T13:51:25Z")

</div>

Hello,  
I’d like to “catch” an event on every frame that is displayed in a video clip. With that event, I’d activate a function. Is that possible?

I’ve created a video object, and used the NetConnection and NetStream to play an FLV file, but I don’t manage to run a function on every frame of the movie.

The only thing that worked is creating a Timer that throws an event every (video.FrameRate) seconds. This solution isn’t 100% accurate.

I’ll be glad for assistance.  
Thanks,  
OML
