is_movie_playing

Declaration

is_movie_playing (frame, name: STRING): BOOLEAN

Description

Finds the movie name inside frame and returns whether it is playing or not.

See Also

find_movie
play_movie
stop_movie
multimedia functions

Example

script restart_intro_movie is
  movie_frame := find_movie ('intro_logo')
  if is_movie (movie_frame, 'intro_logo') and
     is_movie_playing (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