home *** CD-ROM | disk | FTP | other *** search
/ Mac Ga Ichiban! 1997 June / macgaichiban199706.bin / MOVIES / COM.Dxr / 00014.ls < prev    next >
Encoding:
Text File  |  1997-04-04  |  741 b   |  28 lines

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