stop_movie

Declaration

stop_movie (frame, name: STRING)

Description

Finds the movie name inside frame and stops it. This does not rewind the movie, use go_to_movie_start first to go to the beginning.

See Also

find_movie
play_movie
is_movie_playing
multimedia functions

Example

script restart_intro_movie is
  movie_frame := find_movie ('intro_logo')
  if is_movie (movie_frame, 'intro_logo') then
      -- in case the frame is empty
    stop_movie (movie_frame, 'intro_logo')
    go_to_movie_start (movie_frame, 'intro_logo')
    play_movie (movie_frame, 'intro_logo')
  end
end