# Next Movie In Playlist

**URL:** <https://forum.kirupa.com/t/next-movie-in-playlist/215293>\
**Category:** flash\
**Created:** [February 6, 2007, 3:52am UTC](https://forum.kirupa.com/t/next-movie-in-playlist/215293 "2007-02-06T03:52:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saveth](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@saveth](https://forum.kirupa.com/u/saveth)\
**Post date:** [February 6, 2007, 3:52am UTC](https://forum.kirupa.com/t/next-movie-in-playlist/215293/1 "2007-02-06T03:52:47Z")

</div>

Hello,

I am building a flv player. At the end of the movie I would like it to advance to the next movie. I currently have this.

```auto
if (Math.round(loader_mc.scrub_mc._x) >= Math.round(loader_mc.loadbar_mc._width)) {
        nextMovie();
    }

```

Is this the best way to detect when a movie is done or is there a better way. I don’t really like my method because it potentially could cut off a half a second of video.

Thanks,  
Saveth
