home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1998 April / DPPCPRO0498.ISO / April / AutoCAD / ACLT / WNEW.DXR / 00025_MainMenuButtonScript.ls < prev    next >
Encoding:
Text File  |  1997-10-16  |  835 b   |  38 lines

  1. on startRollover
  2.   puppetSprite(7, 1)
  3.   puppetSprite(4, 1)
  4.   set the memberNum of sprite 4 to the number of member "BacktoMainTextRoll"
  5.   set the memberNum of sprite 7 to the memberNum of sprite 7 + 1
  6.   puppetTransition(3, 0, 128)
  7.   updateStage()
  8.   if the mouseDown then
  9.     mouseDown()
  10.   end if
  11. end
  12.  
  13. on endRollover
  14.   puppetSprite(7, 0)
  15.   puppetSprite(4, 0)
  16.   puppetTransition(3, 0, 128)
  17.   updateStage()
  18. end
  19.  
  20. on mouseDown
  21.   set the memberNum of sprite 7 to the memberNum of sprite 7 + 1
  22.   puppetTransition(3, 0, 128)
  23.   updateStage()
  24.   repeat while the mouseDown
  25.     if not rollOver(7) then
  26.       exit
  27.     end if
  28.   end repeat
  29.   set the memberNum of sprite 7 to the memberNum of sprite 7 - 1
  30.   puppetTransition(3, 0, 128)
  31.   updateStage()
  32.   if rollOver(7) then
  33.     EndAnyRollovers()
  34.     MonitorNoSprites()
  35.     go("MainMenu")
  36.   end if
  37. end
  38.