The stopMovie Handler

Date:    Mon, 16 Oct 1995 02:28:42 -0500
From:    "Glenn M. Picher" <gpicher@maine.com>
Subject: Re: the stopMovie handler

>I've discovered that the stopMovie handler is not always
>executed when I press Command-Q

on startMovie
  set the keyDownScript to "trapQuits()"
  ...
end

on trapQuits
  if not the commandDown then return
  put the key into k
  if not ((k = "q") or (k = "Q")) then return
  dontpassevent --eat the keystroke
  stopmovie()
  halt
  --halt is same as quit in a projector but only stops in development
  --environment, so you won't have to restart Director and reload
end