home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!purdue!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!rpi!uwm.edu!rutgers!rochester!rit!tempeh.isc.rit.edu!user
- From: mac9067@cs.rit.edu (Mark Collien)
- Newsgroups: comp.sys.mac.hypercard
- Subject: Re: Movie/button/quit script question
- Message-ID: <mac9067-070193123037@tempeh.isc.rit.edu>
- Date: 7 Jan 93 17:39:57 GMT
- References: <1993Jan6.160344.1@kean.ucs.mun.ca>
- Sender: news@cs.rit.edu
- Followup-To: comp.sys.mac.hypercard
- Organization: Rochester Institute of Technology
- Lines: 55
- Nntp-Posting-Host: tempeh.isc.rit.edu
-
- In article <1993Jan6.160344.1@kean.ucs.mun.ca>, haggas@kean.ucs.mun.ca
- wrote:
- >
- > I wish to "play" a QuickTime movie and "quit" a stack through a
- > background "Quit" button. I cannot play the movie and quit the stack
- > in the button script. How can this be done?
- >
- > I have temporarily got around this problem by adding to each card
- > script (since each card has a "Quit" button) the following:
- > on closeMovie
- > go last -- quit doMenu routine on card script
- > end closMovie
- >
- > This is awkward, it limits the playing to one movie and requires the
- > repetitive scripting on each card.
- >
- > This is our first home-made application of movie clips to student
- > teaching. This clip instructs a medical student how to correctly
- > shut down the MAC, external hard-drive and power supply.
- >
- > John Haggas
- > haggas@kean.ucs.mun.ca
-
- What you can do is set the windowCloseMsg for each movie after it is
- created. When the movie window is closed it will generate the message you
- specify
- which can be trapped by a handler, perhaps at the stack level, to quit
- or do whatever else you want.
-
- Here's an example script:
- ------------------------------
- on playMyMovie
- QTMovie OpenMovie, Windoid, Rtempeh:liftoffS, R100,100S,closeOnFinish
- set windowCloseMsg of window "liftoff" to "movieDone"
- end playMyMovie
-
- on movieDone
- doMenu "Quit HyperCard"
- end movieDone
-
-
- ------------------------------
-
- Hope this does the trick.
-
- -- Mark
-
-
- ---------------------------------------------------------------------------
- Mark Collien
- Interactive Media Laboratory
- Rochester Institute of Technology
- mac9067@cs.rit.edu -or- mac9067@ritvax.bitnet
- 716.475.6625
- 716.475.5804 fax
-