home *** CD-ROM | disk | FTP | other *** search
/ Cocktail Hour / image.iso / COCKTAIL.DIR / Internal_37.ls < prev    next >
Encoding:
Text File  |  1997-03-05  |  968 b   |  45 lines

  1. on exitFrame
  2.   global SoundActive, gProgrmPathOnHD, OnceCheck
  3.   if SoundActive and (soundBusy(1) = 0) then
  4.     sound playFile 1, gProgrmPathOnHD & "drinks"
  5.   end if
  6.   if OnceCheck = 0 then
  7.     cursor(-1)
  8.     colorRoutine()
  9.     repeat with i = 2 to 17
  10.       if i <> 6 then
  11.         set the cursor of sprite i to [34, 35]
  12.       end if
  13.     end repeat
  14.     set the cursor of sprite 27 to [34, 35]
  15.     repeat with i = 42 to 48
  16.       puppetSprite(i, 1)
  17.     end repeat
  18.     set OnceCheck to 1
  19.   end if
  20.   go(the frame)
  21. end
  22.  
  23. on mouseDown
  24.   global checkPress
  25.   set checkPress to the clickOn
  26.   set bDown to the clickOn
  27.   if bDown > 41 then
  28.     buttonPressedDown(bDown, "query")
  29.   end if
  30. end
  31.  
  32. on mouseUp
  33.   global checkPress, CompVec
  34.   set checkPress2 to the clickOn
  35.   if checkPress = checkPress2 then
  36.     set bUp to the clickOn
  37.     if (bUp = 3) or (bUp = 4) or (bUp = 5) then
  38.     else
  39.       if bUp > 41 then
  40.         buttonPressedUp(bUp, "query")
  41.       end if
  42.     end if
  43.   end if
  44. end
  45.