home *** CD-ROM | disk | FTP | other *** search
/ Iona Software Demo / MacWin_IonaSoftware_DemoCD.iso / pc / movies / hbchild.dir / 00016.ls < prev    next >
Encoding:
Text File  |  1996-02-23  |  1.5 KB  |  59 lines

  1. on exitFrame
  2.   global pathTolang, muppetplayed, pathToMain, spacer, SelfRunning, langPrefix, reallyQuit
  3.   set i to 4
  4.   if SelfRunning <> 1 then
  5.     if the timeoutScript = EMPTY then
  6.       set the timeoutScript to "continueWithoutClick"
  7.     end if
  8.   end if
  9.   if rollOver(i) then
  10.     puppetSprite(i, 1)
  11.     set the castNum of sprite i to 25
  12.     updateStage()
  13.     repeat while rollOver(i)
  14.       if the mouseDown then
  15.         set the castNum of sprite i to the number of cast 25
  16.         updateStage()
  17.         puppetSprite(i, 0)
  18.         exit repeat
  19.       end if
  20.     end repeat
  21.   end if
  22.   set the castNum of sprite i to 24
  23.   updateStage()
  24.   if muppetplayed = 0 then
  25.     if not soundBusy(1) then
  26.       set muppetplayed to 1
  27.       sound playFile 1, pathTolang & "BC-M1"
  28.       repeat while soundBusy(1)
  29.         checkForSelfRunWhenInSnd()
  30.         if the mouseDown then
  31.           sound stop 1
  32.           sound stop 2
  33.           exit repeat
  34.         end if
  35.       end repeat
  36.     end if
  37.   end if
  38.   if muppetplayed = 1 then
  39.     if not soundBusy(2) then
  40.       set muppetplayed to 2
  41.       sound playFile 2, pathTolang & "BC-M2"
  42.       repeat while soundBusy(2)
  43.         checkForSelfRunWhenInSnd()
  44.         if the mouseDown then
  45.           sound stop 1
  46.           sound stop 2
  47.           exit repeat
  48.         end if
  49.       end repeat
  50.     end if
  51.   end if
  52.   if SelfRunning = 1 then
  53.     set reallyQuit to 0
  54.     set mov to pathToMain & "muppets" & spacer & "rll" & spacer & langPrefix & "Rll.dir"
  55.     play movie mov
  56.   end if
  57.   go("idle")
  58. end
  59.