home *** CD-ROM | disk | FTP | other *** search
/ Mac Ga Ichiban! 1996 June / macgaichiban199606.bin / MOVIES / SOUNDF / 00068.ls < prev    next >
Encoding:
Text File  |  1996-03-27  |  1.5 KB  |  60 lines

  1. on button
  2.   set cname to item 1 of the name of cast the castNum of sprite clickOn()
  3.   set the castNum of sprite clickOn() to the number of cast (cname & ",on")
  4.   puppetSound("back")
  5.   updateStage()
  6.   repeat while the stillDown
  7.     if rollOver(clickOn()) then
  8.       set the castNum of sprite clickOn() to the number of cast (cname & ",on")
  9.       updateStage()
  10.       next repeat
  11.     end if
  12.     set the castNum of sprite clickOn() to the number of cast (cname & ",off")
  13.     updateStage()
  14.   end repeat
  15.   set the castNum of sprite clickOn() to the number of cast (cname & ",off")
  16.   updateStage()
  17. end
  18.  
  19. on playqt number
  20.   set the movieRate of sprite number to 1
  21.   updateStage()
  22. end
  23.  
  24. on ffqt number
  25.   set the movieRate of sprite number to 2
  26.   updateStage()
  27. end
  28.  
  29. on rewqt number
  30.   set the movieRate of sprite number to -1
  31.   updateStage()
  32. end
  33.  
  34. on stopqt number
  35.   set the movieRate of sprite number to 0
  36.   updateStage()
  37. end
  38.  
  39. on qtbutton
  40.   global qtnum
  41.   if qtnum <> clickOn() then
  42.     puppetSound("qt")
  43.     updateStage()
  44.     set ccname to item 1 of the name of cast the castNum of sprite qtnum
  45.     set the castNum of sprite qtnum to the number of cast (ccname & ",off")
  46.     updateStage()
  47.     set qtnum to clickOn()
  48.     set cname to item 1 of the name of cast the castNum of sprite qtnum
  49.     set the castNum of sprite qtnum to the number of cast (cname & ",on")
  50.     updateStage()
  51.   end if
  52. end
  53.  
  54. on visiblefalse
  55.   set spnumlis to [9, 10, 11, 12]
  56.   repeat with i in spnumlis
  57.     set the visible of sprite i to 0
  58.   end repeat
  59. end
  60.