home *** CD-ROM | disk | FTP | other *** search
/ Mac Ga Ichiban! 1997 October / macgaichiban199710.bin / MOVIES / JIYU.Dxr / 00080.ls < prev    next >
Encoding:
Text File  |  1997-08-08  |  785 b   |  30 lines

  1. on wait t
  2.   set etime to ticks() + t
  3.   repeat while etime > ticks()
  4.     nothing()
  5.   end repeat
  6. end
  7.  
  8. on button
  9.   set cname to item 1 of the name of cast the castNum of sprite clickOn()
  10.   set the castNum of sprite clickOn() to the number of member (cname & ",on")
  11.   updateStage()
  12.   wait(5)
  13.   repeat while the stillDown
  14.     if rollOver(clickOn()) then
  15.       set the castNum of sprite clickOn() to the number of member (cname & ",on")
  16.       updateStage()
  17.       next repeat
  18.     end if
  19.     set the castNum of sprite clickOn() to the number of member (cname & ",off")
  20.     updateStage()
  21.   end repeat
  22.   set the castNum of sprite clickOn() to the number of member (cname & ",off")
  23.   updateStage()
  24. end
  25.  
  26. on yubicursor
  27.   set yubino to the number of member "YUBI"
  28.   cursor([yubino, yubino + 1])
  29. end
  30.