is_movie_visible

Declaration

is_movie_visible (frame, name: STRING)

Description

Finds movie name inside frame and returns whether it is visible. This does not determine whether it is currently visible to the user, but whether it will be shown even if it's document is displayed.

See Also

find_movie
hide_movie
show_movie
set_movie_visible
multimedia functions

Example

script hide_intro_movie is
  movie_frame := find_movie ('intro_logo')
  if is_movie (movie_frame, 'intro_logo') and 
     is_movie_visible (movie_frame, 'intro_logo') then
      -- in case the frame is empty
    hide_movie (movie_frame, 'intro_logo')
  end
end