There is a "end of movie file"-command:
--> If MoviePlaying(movie)=0
returns True if the movie ends or no movie is playing.
If you want to play a movie once try this:
--> If MoviePlaying(movie)=0
returns True if the movie ends or no movie is playing.
If you want to play a movie once try this:
Graphics 640,480 SetBuffer Backbuffer() If movie=0 movie=OpenMovie("Sample.avi") Endif While Not Keyhit(1) DrawMovie movie,0,0,640,480 If MoviePlaying(movie)=0 End Endif Flip Wend End