home *** CD-ROM | disk | FTP | other *** search
/ Mac Ga Ichiban! 1996 June / macgaichiban199606.bin / MOVIES / PHOTOCD / 00033.ls < prev    next >
Encoding:
Text File  |  1996-03-27  |  748 b   |  29 lines

  1. global nowlabel
  2.  
  3. on button
  4.   set cname to item 1 of the name of cast the castNum of sprite clickOn()
  5.   set the castNum of sprite clickOn() to the number of cast (cname & ",on")
  6.   updateStage()
  7.   repeat while the stillDown
  8.     if rollOver(clickOn()) then
  9.       set the castNum of sprite clickOn() to the number of cast (cname & ",on")
  10.       updateStage()
  11.       next repeat
  12.     end if
  13.     set the castNum of sprite clickOn() to the number of cast (cname & ",off")
  14.     updateStage()
  15.   end repeat
  16.   set the castNum of sprite clickOn() to the number of cast (cname & ",off")
  17.   updateStage()
  18. end
  19.  
  20. on back
  21.   if key() = RETURN then
  22.     cursor(-1)
  23.     set the keyDownScript to EMPTY
  24.     puppetSound(0)
  25.     puppetTransition(23)
  26.     go(nowlabel)
  27.   end if
  28. end
  29.