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

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