home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2003 #5 / K-CD-5-2003.ISO / Layout / data1.cab / QuickTours / qt08mail.exe / qt08mail.dxr / 00017.ls < prev    next >
Encoding:
Text File  |  2002-07-29  |  778 b   |  34 lines

  1. on mouseDown
  2.   global sprNum, sprUp, sprDown
  3.   set sprNum to 16
  4.   set sprUp to 15
  5.   set sprDown to 16
  6.   set sprGrayed to 20
  7.   puppetSprite(sprNum, 1)
  8.   if the memberNum of sprite sprNum = sprGrayed then
  9.     exit
  10.   end if
  11.   set the memberNum of sprite sprNum to sprDown
  12.   updateStage()
  13.   repeat while the stillDown
  14.     if rollOver(sprNum) then
  15.       set the memberNum of sprite sprNum to sprDown
  16.     else
  17.       set the memberNum of sprite sprNum to sprUp
  18.     end if
  19.     updateStage()
  20.   end repeat
  21. end
  22.  
  23. on mouseUp
  24.   global sprNum, sprUp, sprDown, sprGrayed
  25.   if the memberNum of sprite sprNum = sprGrayed then
  26.     exit
  27.   end if
  28.   if the memberNum of sprite sprNum = sprDown then
  29.     set the memberNum of sprite sprNum to sprUp
  30.     updateStage()
  31.     go(the frame + 1)
  32.   end if
  33. end
  34.