home *** CD-ROM | disk | FTP | other *** search
/ Mac Ga Ichiban! 1997 April / macgaichiban199704.bin / MOVIES / TRUE.Dxr / 00070.ls < prev    next >
Encoding:
Text File  |  1997-02-07  |  797 b   |  31 lines

  1. global gframelabel
  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 back
  21.   if key() = RETURN then
  22.     set the keyDownScript to EMPTY
  23.     go(gframelabel)
  24.   end if
  25. end
  26.  
  27. on yubicursor
  28.   set yubino to the number of member "YUBI"
  29.   cursor([yubino, yubino + 1])
  30. end
  31.