Next Movie In Playlist

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.

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