home *** CD-ROM | disk | FTP | other *** search
/ Buffalo Sabres 2001-2002 Promotional CD / Sabres.iso / pc / game.dxr / 00011_sidenav.ls < prev    next >
Encoding:
Text File  |  2001-09-05  |  679 b   |  42 lines

  1. property thescript, S, ro, m
  2.  
  3. on getPropertyDescriptionList
  4.   description = [:]
  5.   addProp(description, #thescript, [#default: "A", #format: #text, #comment: "thescript"])
  6.   return description
  7. end
  8.  
  9. on beginSprite me
  10.   S = me.spriteNum
  11.   m = the memberNum of sprite S
  12.   ro = m + 3
  13. end
  14.  
  15. on mouseEnter me
  16.   rocursor()
  17.   puppetSound(2, 0)
  18.   puppetSound(2, "chime")
  19.   set the memberNum of sprite S to ro
  20. end
  21.  
  22. on mouseLeave me
  23.   regcursor()
  24.   set the memberNum of sprite S to m
  25. end
  26.  
  27. on mouseUp me
  28.   regcursor()
  29.   set the memberNum of sprite S to m
  30.   case thescript of
  31.     "replay":
  32.       replay()
  33.     "howto":
  34.       howto()
  35.     "over":
  36.       leavegame()
  37.   end case
  38. end
  39.  
  40. on reset me
  41. end
  42.