home *** CD-ROM | disk | FTP | other *** search
/ Cocktail Hour / image.iso / COCKTAIL.DIR / 00037_Script_37 < prev    next >
Text File  |  1997-03-05  |  995b  |  45 lines

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