[muglo] Re: HyperCard Stack Problem When Burned on CD-R

  • From: doug rogers <dougsamu@xxxxxxxxxx>
  • To: "MUGLO Online" <muglo@xxxxxxxxxxxxx>
  • Date: Wed, 3 Nov 2004 09:26:34 -0500

>if it is "extinctions" then
>    open "Lynn" with "QuickTime Player"
>end if
>
>This results, of course, in the movie playing in a QT window external to 
>HyperCard.
>
>The more desirable code is the following, which I can't get to work on 
>the CD, which causes the movie "Lynn" to play in a window "Lynn 
>Margulis" inside HyperCard:
>
>if it is "extinctions" then
>    get windowScript("Lynn Margulis")
>    wsSend "Lynn Margulis","Lynn","play"
>end if


I have card with a list  (fld TheList) of items. This button script 
initalizes some values:

on mouseUp
  global x
  put empty into x
  CloseMovie
end mouseUp

 and this handler does the work:

on closeMovie
  global x
  add 1 to x
  if line x of fld TheList is empty then exit closeMovie
  else
    put line x of fld TheList into TheMovie
    open movie TheMovie
    set the topLeft of window TheMovie to "236,78"
    send "play" to window TheMovie
    set the CloseOnFinish of window TheMovie to true
  end if
end closeMovie

You can set also the location of the Quicktime window to better integrate 
into your design. You can also set the window style, the visibility and 
layer. Don't know how much you know, or need to fiddle with. :-)

>                  <http://home.golden.net/~samu>                 <
>   There's a crack in everything. That's how the light gets in.  <

_________________________________________________

For information concerning the MUGLO List just click on

           http://muglo.on.ca/Pages/joinus.html

Our Archives can be viewed at 

         //www.freelists.org/archives/muglo

Don't forget to periodically check our web site at:

                 http://muglo.on.ca/

Other related posts: