home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2003 #5 / K-CD-5-2003.ISO / Layout / data1.cab / QuickTours / QT16WEB.EXE / QT16WEB.dxr / 00014.ls < prev    next >
Encoding:
Text File  |  2002-07-29  |  924 b   |  42 lines

  1. on mouseDown
  2.   global sprNum, sprUp, sprDown
  3.   set sprNum to 17
  4.   set sprUp to 12
  5.   set sprDown to 13
  6.   set sprGrayed to 19
  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, anim, key
  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.     if anim = 0 then
  32.       go(the frame - 1)
  33.     else
  34.       if key = 0 then
  35.         go(marker(-2))
  36.       else
  37.         go(marker(-1))
  38.       end if
  39.     end if
  40.   end if
  41. end
  42.