home *** CD-ROM | disk | FTP | other *** search
/ Cocktail Hour / image.iso / COCKTAIL.DIR / history_5_history.ls < prev    next >
Encoding:
Text File  |  1997-03-05  |  1.7 KB  |  70 lines

  1. on exitFrame
  2.   global OnceCheck, SoundActive, gProgrmPathOnHD
  3.   if OnceCheck = 0 then
  4.     cursor(-1)
  5.     set OnceCheck to 1
  6.     repeat with i = 5 to 7
  7.       set the cursor of sprite i to [34, 35]
  8.       puppetSprite(i, 1)
  9.     end repeat
  10.     repeat with i = 42 to 48
  11.       puppetSprite(i, 1)
  12.     end repeat
  13.   end if
  14.   if SoundActive and (soundBusy(1) = 0) then
  15.     sound playFile 1, gProgrmPathOnHD & "slides"
  16.   end if
  17.   go(the frame)
  18. end
  19.  
  20. on mouseDown
  21.   global checkPress
  22.   set checkPress to the clickOn
  23.   set bDown to the clickOn
  24.   if (bDown = 5) or (bDown = 6) or (bDown = 7) then
  25.     repeat with i = 5 to 7
  26.       if i = bDown then
  27.         set the member of sprite i to member ("histBtn" & bDown - 4)
  28.         next repeat
  29.       end if
  30.       set the member of sprite i to member "origin"
  31.     end repeat
  32.   else
  33.     if bDown > 41 then
  34.       buttonPressedDown(bDown, "history")
  35.     end if
  36.   end if
  37. end
  38.  
  39. on mouseUp
  40.   global checkPress
  41.   set checkPress2 to the clickOn
  42.   if checkPress = checkPress2 then
  43.     set bUp to the clickOn
  44.     if (bUp = 5) or (bUp = 6) or (bUp = 7) then
  45.       repeat with i = 8 to 14
  46.         set the visible of sprite i to 0
  47.       end repeat
  48.       if bUp = 5 then
  49.         set the visible of sprite 10 to 1
  50.         set the visible of sprite 13 to 1
  51.         set the cursor of sprite 13 to [34, 35]
  52.       else
  53.         if bUp = 6 then
  54.           set the visible of sprite 8 to 1
  55.           set the visible of sprite 13 to 1
  56.           set the cursor of sprite 13 to [34, 35]
  57.         else
  58.           if bUp = 7 then
  59.             set the visible of sprite 12 to 1
  60.           end if
  61.         end if
  62.       end if
  63.     else
  64.       if bUp > 41 then
  65.         buttonPressedUp(bUp, "history")
  66.       end if
  67.     end if
  68.   end if
  69. end
  70.