home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1996 July / macformat-039.iso / MAKERS / MAIN.DIR / 00092.ls < prev    next >
Encoding:
Text File  |  1996-03-12  |  1.6 KB  |  78 lines

  1. on startMovie
  2.   global theSprite, CurrSound, ItemDel, status, ToGo, prevMovie
  3.   if (prevMovie <> "body") or (prevMovie <> "power") then
  4.     set prevMovie to "body"
  5.   end if
  6.   set CurrSound to EMPTY
  7.   set theSprite to 1
  8.   set the volume of sprite 2 to 255
  9.   set the volume of sprite 1 to 255
  10.   set status to []
  11.   if the machineType = 256 then
  12.     set ItemDel to "\"
  13.   else
  14.     set ItemDel to ":"
  15.   end if
  16.   set the itemDelimiter to ","
  17.   set ToGo to "open"
  18. end
  19.  
  20. on rollOvers
  21.   global theSprite
  22.   if rollOver(11) then
  23.     set theSprite to 3
  24.     go("power")
  25.   else
  26.     if rollOver(12) then
  27.       set theSprite to 4
  28.       go("body")
  29.     else
  30.       if rollOver(9) then
  31.         set theSprite to 9
  32.         go("search")
  33.       else
  34.         if the mouseCast = 135 then
  35.           changeCast(135, 18)
  36.         else
  37.           if the mouseCast = 137 then
  38.             changeCast(137, 19)
  39.           end if
  40.         end if
  41.       end if
  42.     end if
  43.   end if
  44. end
  45.  
  46. on changeCast theRoll, theSprite
  47.   if not (the name of cast the castNum of sprite theSprite contains "down") then
  48.     set the castNum of sprite theSprite to the castNum of sprite theSprite - 1
  49.     updateStage()
  50.     repeat while (the mouseCast = (theRoll - 1)) and not (the mouseDown)
  51.     end repeat
  52.     set the castNum of sprite theSprite to the castNum of sprite theSprite + 1
  53.   end if
  54. end
  55.  
  56. on disposeRearWindow
  57.   global rwObj
  58.   if the machineType <> 256 then
  59.     if objectp(rwObj) then
  60.       rwObj(mdispose)
  61.     end if
  62.   end if
  63. end
  64.  
  65. on stopMovie
  66.   puppetSound(0)
  67.   puppetSound(2, 0)
  68.   sound stop 1
  69.   sound stop 2
  70.   sound stop 3
  71.   sound stop 4
  72.   puppetSound(0)
  73.   puppetSound(2, 0)
  74.   unLoadCast(114)
  75.   updateStage()
  76.   updateStage()
  77. end
  78.