home *** CD-ROM | disk | FTP | other *** search
/ Mac Ga Ichiban! 1997 December / macgaichiban199712.bin / MOVIES / SCR.DXR / 00065.ls < prev    next >
Encoding:
Text File  |  1997-07-08  |  759 b   |  28 lines

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