Determining if a Movie is Playing
Mac OS 9 Mac OS X Windows Linux

You can tell if a movie is playing in the following way:
on mouseUp
  answer isPlaying(long id of player 1)
end mouseUp

function isPlaying tTarget
  put the currentTime of tTarget into tTimeA
  wait 10 milliseconds
  put the currentTime of tTarget into tTimeB
  return (tTimeA <> tTimeB)
end isPlaying

Posted 10/6/2002 by Ken Ray to the Use Revolution list   (See the complete post/thread)


Close this window Print this window