home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1997 December / WPCDEC97.ISO / DXRS / CYRIXO.DXR / 00006_AnimateFreePhone.ls < prev    next >
Encoding:
Text File  |  1997-10-13  |  1.6 KB  |  53 lines

  1. on AnimateFreePhone
  2.   global Phone, LineHFlag, CYRIXPHONE, CYRPhoneCount, CYRIXFuture
  3.   repeat while not rollOver(Phone)
  4.     case CYRIXFuture of
  5.       0:
  6.         if the castNum of sprite 18 = the number of member "BIGCOMSixteen" then
  7.           set the locH of sprite 39 to 250
  8.         else
  9.           set the locH of sprite 39 to 317
  10.         end if
  11.         set CYRIXFuture to 1
  12.     end case
  13.     case CYRIXPHONE of
  14.       0:
  15.         if the locH of sprite Phone > 219 then
  16.           set the locH of sprite Phone to 219
  17.           set CYRIXPHONE to 1
  18.           updateStage()
  19.           set the castNum of sprite Phone to the number of member "PhoneTwo"
  20.         else
  21.           set the locH of sprite Phone to the locH of sprite Phone + 10
  22.         end if
  23.       1:
  24.         case CYRPhoneCount of
  25.           120:
  26.             set the castNum of sprite Phone to the number of member "Phone"
  27.             updateStage()
  28.           240:
  29.             set the castNum of sprite Phone to the number of member "PhoneTwo"
  30.             set CYRPhoneCount to 0
  31.             updateStage()
  32.         end case
  33.         set CYRPhoneCount to 1 + CYRPhoneCount
  34.     end case
  35.     if the mouseDown then
  36.       ReplaceCast()
  37.       set the castNum of sprite Phone to the number of member "Phone"
  38.       set CYRIXPHONE to 2
  39.       set CYRIXFuture to 0
  40.       exit repeat
  41.     end if
  42.     updateStage()
  43.   end repeat
  44.   if (the locH of sprite Phone = 219) and (CYRIXPHONE = 1) then
  45.     set the castNum of sprite Phone to the number of member "PhoneTwo"
  46.     set CYRPhoneCount to 0
  47.     updateStage()
  48.   end if
  49.   if CYRIXPHONE = 2 then
  50.     set CYRIXPHONE to 0
  51.   end if
  52. end
  53.