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

  1. on startRollover
  2.   global button1
  3.   set button1 to 12
  4.   puppetSprite(button1, 1)
  5.   puppetSprite(42, 1)
  6.   set the memberNum of sprite button1 to the memberNum of sprite button1 + 1
  7.   set the memberNum of sprite 42 to the number of member "Back Rollover"
  8.   set the loc of sprite 42 to point(695, 10)
  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.     startTimer()
  39.     go(#previous)
  40.   end if
  41. end
  42.