home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Today - The Disc! 9 / cdrt09.iso / mac / UTAHDEMO / SHARED.DIR / 00737_Script_737 < prev    next >
Text File  |  1995-01-13  |  1KB  |  34 lines

  1. -- set up resort nav buttons
  2. on setUpResortNav
  3.   global buttonPressed
  4.   
  5.   puppetSprite 20, TRUE
  6.   puppetSprite 21, TRUE
  7.   
  8. if (the type of sprite 20 = 1) then
  9.    if rollover (20) then
  10.     if (buttonPressed = 2) and (the stillDown) then
  11.       set the castNum of sprite (20) to the number of cast "map down"
  12.     else if (the stillDown) then 
  13.       set the castNum of sprite (20) to the number of cast "map up"
  14.     else
  15.       set the castNum of sprite (20) to the number of cast "map sel"
  16.     end if
  17.   else
  18.     set the castNum of sprite (20) to the number of cast "map up"
  19.   end if
  20. end if
  21.   
  22. if (the type of sprite 21 = 1) then
  23.   if rollover (21) then
  24.     if (buttonPressed = 7)  and (the stillDown) then
  25.       set the castNum of sprite (21) to the number of cast "quit down"
  26.     else if (the stillDown) then 
  27.       set the castNum of sprite (21) to the number of cast "quit up"
  28.     else
  29.       set the castNum of sprite (21) to the number of cast "quit sel"
  30.     end if
  31.   else
  32.     set the castNum of sprite (21) to the number of cast "quit up"
  33.   end if
  34. end if