home *** CD-ROM | disk | FTP | other *** search
/ Mac Ga Ichiban! 1997 December / macgaichiban199712.bin / MOVIES / TRUE.DXR / 00092.ls < prev    next >
Encoding:
Text File  |  1997-11-13  |  818 b   |  32 lines

  1. global gframelabel, size
  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 member (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 member (cname & ",on")
  10.       updateStage()
  11.       next repeat
  12.     end if
  13.     set the castNum of sprite clickOn() to the number of member (cname & ",off")
  14.     updateStage()
  15.   end repeat
  16.   set the castNum of sprite clickOn() to the number of member (cname & ",off")
  17.   updateStage()
  18. end
  19.  
  20. on yubicursor
  21.   set yubino to the number of member "YUBI"
  22.   cursor([yubino, yubino + 1])
  23. end
  24.  
  25. on back
  26.   if key() = RETURN then
  27.     set the keyDownScript to EMPTY
  28.     cursor(-1)
  29.     go(gframelabel)
  30.   end if
  31. end
  32.