home *** CD-ROM | disk | FTP | other *** search
/ Family Forum 256 / DR_BRAIN.BIN / Somc / SNEAK.dir / 00001_Script_1 next >
Text File  |  1998-10-12  |  8KB  |  243 lines

  1.  
  2. on startMovie
  3.    
  4.   global whichsneak
  5.   set whichsneak to "FAMILY"  
  6.   
  7.   
  8.   --* This declares the variables for the finger cursor. *
  9.   global SPFINGER, SPFINGERMASK
  10.   set SPFINGER to the memberNum of member "Finger1"
  11.   set SPFINGERMASK to the memberNum of member "Finger2"
  12.   
  13.   glowClear()
  14.   
  15. end
  16.  
  17.  
  18. on showpuppets TRUEFALSE
  19.   repeat with x = 2 to 6
  20.     set the visible of sprite x to TRUEFALSE
  21.   end repeat
  22. end
  23.  
  24.  
  25. on puppetsneaks sneakONOFF
  26.   repeat with x = 2 to 6
  27.     puppetSprite x,sneakONOFF
  28.   end repeat 
  29.   repeat with x = 52 to 56
  30.     puppetSprite x,sneakONOFF
  31.   end repeat 
  32. end
  33.  
  34. on sneakswap WHICHSNEAK
  35.   global FAMG,GAMEG,KIDSG,MACG,PRODG,EDUG
  36.   puppetsneaks (FALSE)
  37.   showpuppets (FALSE)
  38.   case WHICHSNEAK of
  39.     "EDU":
  40.       set the memberNum of sprite 2 to the memberNum of member "Snk FAM"
  41.       set FAMG to 52
  42.       set the memberNum of sprite 3 to the memberNum of member "Snk GAME"
  43.       set GAMEG to 53
  44.       set the memberNum of sprite 4 to the memberNum of member "Snk KIDS"
  45.       set KIDSG to 54
  46.       set the memberNum of sprite 5 to the memberNum of member "Snk MAC"
  47.       set MACG to 55
  48.       set the memberNum of sprite 6 to the memberNum of member "Snk PROD"
  49.       set PRODG to 56
  50.       
  51.       set the memberNum of sprite 52 to the memberNum of member "Snk FAMG"
  52.       set the memberNum of sprite 53 to the memberNum of member "Snk GAMEG"
  53.       set the memberNum of sprite 54 to the memberNum of member "Snk KIDSG"
  54.       set the memberNum of sprite 55 to the memberNum of member "Snk MACG"
  55.       set the memberNum of sprite 56 to the memberNum of member "Snk PRODG"
  56.       
  57.     "FAMILY":
  58.       set the memberNum of sprite 2 to the memberNum of member "Snk EDU"
  59.       set EDUG to 52
  60.       set the memberNum of sprite 3 to the memberNum of member "Snk GAME"
  61.       set GAMEG to 53
  62.       set the memberNum of sprite 4 to the memberNum of member "Snk KIDS"
  63.       set KIDSG to 54
  64.       set the memberNum of sprite 5 to the memberNum of member "Snk MAC"
  65.       set MACG to 55
  66.       set the memberNum of sprite 6 to the memberNum of member "Snk PROD" 
  67.       set PRODG to 56
  68.       
  69.       set the memberNum of sprite 52 to the memberNum of member "Snk EDUG"
  70.       set the memberNum of sprite 53 to the memberNum of member "Snk GAMEG"
  71.       set the memberNum of sprite 54 to the memberNum of member "Snk KIDSG"
  72.       set the memberNum of sprite 55 to the memberNum of member "Snk MACG"
  73.       set the memberNum of sprite 56 to the memberNum of member "Snk PRODG"
  74.       
  75.       
  76.     "GAME":
  77.       set the memberNum of sprite 2 to the memberNum of member "Snk EDU"
  78.       set EDUG to 52
  79.       set the memberNum of sprite 3 to the memberNum of member "Snk FAM"
  80.       set FAMG to 53
  81.       set the memberNum of sprite 4 to the memberNum of member "Snk KIDS"
  82.       set KIDSG to 54
  83.       set the memberNum of sprite 5 to the memberNum of member "Snk MAC"
  84.       set MACG to 55
  85.       set the memberNum of sprite 6 to the memberNum of member "Snk PROD" 
  86.       set PRODG to 56
  87.       
  88.       set the memberNum of sprite 52 to the memberNum of member "Snk eduG"
  89.       set the memberNum of sprite 53 to the memberNum of member "Snk FAMG"
  90.       set the memberNum of sprite 54 to the memberNum of member "Snk KIDSG"
  91.       set the memberNum of sprite 55 to the memberNum of member "Snk MACG"
  92.       set the memberNum of sprite 56 to the memberNum of member "Snk PRODG"
  93.       
  94.       
  95.       
  96.     "KIDS":
  97.       set the memberNum of sprite 2 to the memberNum of member "Snk EDU"
  98.       set EDUG to 52
  99.       set the memberNum of sprite 3 to the memberNum of member "Snk FAM"
  100.       set FAMG to 53
  101.       set the memberNum of sprite 4 to the memberNum of member "Snk GAME"
  102.       set GAMEG to 54
  103.       set the memberNum of sprite 5 to the memberNum of member "Snk MAC"
  104.       set MACG to 55
  105.       set the memberNum of sprite 6 to the memberNum of member "Snk PROD"  
  106.       set PRODG to 56
  107.       set the memberNum of sprite 52 to the memberNum of member "Snk EDUG"
  108.       set the memberNum of sprite 53 to the memberNum of member "Snk FAMG"
  109.       set the memberNum of sprite 54 to the memberNum of member "Snk GAMEG"
  110.       set the memberNum of sprite 55 to the memberNum of member "Snk MACG"
  111.       set the memberNum of sprite 56 to the memberNum of member "Snk PRODG"
  112.       
  113.       
  114.     "MAC":
  115.       set the memberNum of sprite 2 to the memberNum of member "Snk EDU"
  116.       
  117.       set the memberNum of sprite 3 to the memberNum of member "Snk FAM"
  118.       set FAMG to 53
  119.       set the memberNum of sprite 4 to the memberNum of member "Snk GAME"
  120.       set GAMEG to 54
  121.       set the memberNum of sprite 5 to the memberNum of member "Snk KIDS"
  122.       set KIDSG to 55
  123.       set the memberNum of sprite 6 to the memberNum of member "Snk PROD" 
  124.       set PRODG to 56
  125.       
  126.       set the memberNum of sprite 52 to the memberNum of member "Snk FAMG"
  127.       set the memberNum of sprite 53 to the memberNum of member "Snk FAMG"
  128.       set the memberNum of sprite 54 to the memberNum of member "Snk GAMEG"
  129.       set the memberNum of sprite 55 to the memberNum of member "Snk KIDSG"
  130.       set the memberNum of sprite 56 to the memberNum of member "Snk PRODG"
  131.       
  132.     "PROD":
  133.       set the memberNum of sprite 2 to the memberNum of member "Snk EDU"
  134.       set EDUG to 52
  135.       set the memberNum of sprite 3 to the memberNum of member "Snk FAM"
  136.       set FAMG to 53
  137.       set the memberNum of sprite 4 to the memberNum of member "Snk GAME"
  138.       set GAMEG to 54
  139.       set the memberNum of sprite 5 to the memberNum of member "Snk KIDS"
  140.       set KIDSG to 55
  141.       set the memberNum of sprite 6 to the memberNum of member "Snk MAC"
  142.       set MACG to 56
  143.       
  144.       set the memberNum of sprite 52 to the memberNum of member "Snk EDUG"
  145.       set the memberNum of sprite 53 to the memberNum of member "Snk FAMG"
  146.       set the memberNum of sprite 54 to the memberNum of member "Snk GAMEG"
  147.       set the memberNum of sprite 55 to the memberNum of member "Snk KIDSG"
  148.       set the memberNum of sprite 56 to the memberNum of member "Snk MACG"
  149.       
  150.       
  151.   end case
  152.   
  153.   puppetsneaks (TRUE)
  154.   UpdateStage
  155.   showpuppets (TRUE)
  156.   
  157. end
  158.  
  159.  
  160. --* This handler hides/shows the glow images. eg: glow(5,TRUE) *
  161.  
  162. on glow WHICHSPRITE, TRUEORFALSE
  163.   set the visible of sprite WHICHSPRITE to TRUEORFALSE
  164. end glow
  165.  
  166. --* TURN OF ALL GLOWS ON START
  167. on glowClear
  168.   repeat with i = 50 to 65
  169.     glow(i)
  170.   end repeat
  171. end
  172.  
  173. --* This handler switches the text color for a glow effect. eg.textglow("Hello",1)*
  174.  
  175. on textglow WHICHMEMBER, COLORNUMBER
  176.   set the foreColor of member WHICHMEMBER to COLORNUMBER  
  177. end textglow
  178.  
  179.  
  180. --* THIS HANDLER OPEN AND CENTERS A MOVIE IN A WINDOW *
  181.  
  182. on openMIAW MYWINDOW
  183.   set myRect=the rect of window MYWINDOW
  184.   set myStage=the rect of the Stage
  185.   set myWidth=(getAt(myRect,3)-getAt(myRect,1))
  186.   set myHeight=(getAt(myRect,4)-getAt(myRect,2))
  187.   set myLocH=((getAt(myStage,3)+getAt(myStage,1))/2)-(myWidth/2)
  188.   set myLocV=((getAt(myStage,2)+getAt(myStage,4))/2)-(myHeight/2)
  189.   set myNewRect=rect(myLocH,myLocV,(myLocH+myWidth),(myLocV+myHeight))
  190.   set the rect of window MYWINDOW=myNewRect
  191.   set the windowType of window MYWINDOW to 2
  192.   open window MYWINDOW
  193. end openMIAW
  194.  
  195.  
  196. --* THESE HANDLERS TURN ON A GLOW, TURN POINTER A HAND AND PLAYS A SOUND *
  197.  
  198. on doRollover numsprite,SOUNDNUM
  199.   glow(numsprite,TRUE)
  200.   global SPfinger,SPfingermask
  201.   cursor[SPfinger,SPfingermask]
  202.   updatestage  
  203.   case SOUNDNUM of
  204.     1:
  205.       puppetsound 1, "rollsound"
  206.       --  repeat while soundbusy(1)
  207.       --  end repeat
  208.     2:
  209.       puppetsound 1, "rollsound2"
  210.       --  repeat while soundbusy(1)
  211.       --  end repeat      
  212.   end case  
  213. end
  214.  
  215.  
  216.  
  217. --* THIS HANDLER TURNS THE SPRITE PASSED TO IT TO INVISIBLE AND RESETS THE CURSOR
  218.  
  219. on doRollout numsprite
  220.   glow(numsprite,FALSE)
  221.   cursor 0
  222. end
  223.  
  224. --* PLAYS A CLICK SOUND
  225.  
  226. on doClick
  227.   puppetsound 1,"clicksound"
  228.   updateStage
  229. end
  230.  
  231.  
  232.  
  233. -- Delays for x number of seconds
  234. on timedelay SECONDS 
  235.   startTimer
  236.   repeat while the timer < SECONDS * 60
  237.     nothing
  238.   end repeat    
  239. end
  240.  
  241.  
  242.  
  243.