The Movie XCMD allows you to set a callBackMsg property which will be
automatically sent when the movie completes. You can use this command to
execute another handler when the movie completes.
Button script example:
on mouseUp
global TheMovieName
put "Claris Logo Movie" into TheMovieName
put the number of me into myButton
Movie TheMovieName,"Windoid","Card","Visible","Floating"
set the callBackMsg of window theMovieName to ┬
"send movieFinished to cd btn" && myButton
send "Play" to window TheMovieName
end mouseUp
on movieFinished
global TheMovieName
answer "The movie is done!"
close window TheMovieName
end movieFinished
This article is adapted from the Claris Tech Info database.
Support Information Services