# Detect end of video playback

**URL:** <https://forum.kirupa.com/t/detect-end-of-video-playback/262184>\
**Category:** flash\
**Created:** [June 3, 2008, 11:31pm UTC](https://forum.kirupa.com/t/detect-end-of-video-playback/262184 "2008-06-03T23:31:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![artcoder](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@artcoder](https://forum.kirupa.com/u/artcoder)\
**Post date:** [June 3, 2008, 11:31pm UTC](https://forum.kirupa.com/t/detect-end-of-video-playback/262184/1 "2008-06-03T23:31:12Z")

</div>

I dragged a FLVPlayback control to stage and set the “content” to my FLV file. It plays fine.

But I want to detect when the video finish and have the movie GotoAndPlay(1) – go back to frame 1 of movie.

I know I’m supposed to use “on complete” event handler or something. Can anybody show me some sample code? My FLVPlayback instance is called “myVideo”.

Thanks in advance.
