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

  1. on exitFrame
  2.   global SoundActive, gProgrmPathOnHD, OnceCheck, Navigate
  3.   if SoundActive and (soundBusy(1) = 0) then
  4.     sound playFile 1, gProgrmPathOnHD & "slides"
  5.   end if
  6.   if OnceCheck = 0 then
  7.     cursor(-1)
  8.     set OnceCheck to 1
  9.     repeat with i = 2 to 15
  10.       if i > 2 then
  11.         set the cursor of sprite i to [34, 35]
  12.       end if
  13.       puppetSprite(i, 1)
  14.     end repeat
  15.     repeat with i = 42 to 48
  16.       puppetSprite(i, 1)
  17.     end repeat
  18.     set the locH of sprite 2 to -1000
  19.     set the locV of sprite 2 to -1000
  20.     if Navigate = "party" then
  21.       set curMonth to value(the text of field "savedGlobals")
  22.       set the locH of sprite 2 to the left of sprite (curMonth + 3)
  23.       set the locV of sprite 2 to the top of sprite (curMonth + 3)
  24.       if the visible of sprite 2 = 0 then
  25.         set the visible of sprite 2 to 1
  26.       end if
  27.       set the member of sprite 3 to member ("month" & curMonth)
  28.     end if
  29.   end if
  30.   go(the frame)
  31. end
  32.  
  33. on mouseDown
  34.   global checkPress
  35.   set checkPress to the clickOn
  36.   set bDown to the clickOn
  37.   if bDown > 41 then
  38.     buttonPressedDown(bDown, "party")
  39.   end if
  40. end
  41.  
  42. on mouseUp
  43.   global checkPress, Choice
  44.   set checkPress2 to the clickOn
  45.   if checkPress = checkPress2 then
  46.     set bUp to the clickOn
  47.     if (bUp > 3) and (bUp < 16) then
  48.       set the locH of sprite 2 to the left of sprite bUp
  49.       set the locV of sprite 2 to the top of sprite bUp
  50.       if the visible of sprite 2 = 0 then
  51.         set the visible of sprite 2 to 1
  52.       end if
  53.       set the member of sprite 3 to member ("month" & bUp - 3)
  54.     else
  55.       if (bUp = 3) and the visible of sprite 2 then
  56.         if the number of chars in the name of the member of sprite 3 = 6 then
  57.           set currMonth to value(char 6 of the name of the member of sprite 3)
  58.         else
  59.           set currMonth to value(char 6 to 7 of the name of the member of sprite 3)
  60.         end if
  61.         set Choice to line currMonth of field "hyperlinks"
  62.         translate(Choice)
  63.         put currMonth into field "savedGlobals"
  64.         set x to the number of lines in field "backField"
  65.         put marker(0) into line x + 1 of field "backField"
  66.         clearPuppets()
  67.         go(marker("entertainmentP"))
  68.       else
  69.         if bUp > 41 then
  70.           buttonPressedUp(bUp, "party")
  71.         end if
  72.       end if
  73.     end if
  74.   end if
  75. end
  76.