Not quite true...
Sprite(1).movierate will stay 1 if the movie ends by itself.
Better is,
if sprite(1).movietime > sprite(1).duration - 20 then
Mind the - 20.
This is to avoid the 'off by one' bug.
It's not guaranteed that the exact last point will be played, so this is just for safety.
As movietime is measured in ticks (60 per second) this will kick in 1/3 of a second before the actual end.
You can make it a little smaller, but safer is this and have the application wait a little before taking furter action.
Bouke
http://www.videoToolShed.com
smart tools for video pro's