home *** CD-ROM | disk | FTP | other *** search
/ Chip 1999 July / CHIP-1999-07.iso / chip / monitor / elsa / ScreenChecker.exe / ScreenChecker.dxr / 00025.ls < prev    next >
Encoding:
Text File  |  1998-07-09  |  1001 b   |  43 lines

  1. on startMovie
  2.   global Kiste
  3.   if the machineType = 256 then
  4.     set Kiste to "PC"
  5.   else
  6.     set Kiste to "MAC"
  7.   end if
  8.   if the colorDepth = 8 then
  9.     set ColorD to "8"
  10.   else
  11.     set ColorD to "0"
  12.   end if
  13.   set the exitLock to 1
  14. end
  15.  
  16. on hPressButton
  17.   set vSprite to the clickOn
  18.   set vCastNo to the castNum of sprite vSprite
  19.   set vCastNam to the name of cast vCastNo
  20.   puppetSprite(vSprite, 1)
  21.   if (vCastNam = 0) or (vCastNam = EMPTY) then
  22.     set the castNum of sprite vSprite to vCastNo + 1
  23.   else
  24.     set the castNum of sprite vSprite to the number of member (vCastNam & "-down")
  25.   end if
  26.   updateStage()
  27.   repeat while the stillDown
  28.     nothing()
  29.   end repeat
  30.   if (vCastNam = 0) or (vCastNam = EMPTY) then
  31.     set the castNum of sprite vSprite to vCastNo
  32.   else
  33.     set the castNum of sprite vSprite to the number of member vCastNam
  34.   end if
  35.   puppetSprite(vSprite, 0)
  36.   updateStage()
  37.   if the mouseCast = the castNum of sprite vSprite then
  38.     return 1
  39.   else
  40.     return 0
  41.   end if
  42. end
  43.