home *** CD-ROM | disk | FTP | other *** search
/ Blaze / Blaze.iso / mac / VIVID2M.Dxr / 00068.ls < prev    next >
Encoding:
Text File  |  1997-08-21  |  2.4 KB  |  92 lines

  1. on enterFrame
  2.   global gStartMov, gChMov1, gPtime, gMtype, gPress, gDVSound, gHandPTR, gHandCUR
  3.   if rollOver(2) then
  4.     set the cursor of sprite 2 to gHandPTR
  5.   end if
  6.   if rollOver(3) then
  7.     set the cursor of sprite 3 to gHandPTR
  8.   end if
  9.   if rollOver(4) then
  10.     set the cursor of sprite 4 to gHandPTR
  11.   end if
  12.   if rollOver(5) then
  13.     set the cursor of sprite 5 to gHandCUR
  14.   end if
  15.   if rollOver(6) then
  16.     set the cursor of sprite 6 to gHandCUR
  17.   end if
  18.   if rollOver(7) then
  19.     set the cursor of sprite 7 to gHandCUR
  20.   end if
  21.   if gStartMov then
  22.     set the visible of sprite 10 to 1
  23.     if gMtype then
  24.       set the controller of cast gChMov1 to 0
  25.     else
  26.       set the controller of cast gChMov1 to 1
  27.     end if
  28.     set the movieTime of sprite 10 to gPtime
  29.     set the pausedAtStart of cast gChMov1 to 0
  30.     set the movieRate of sprite 10 to 1
  31.     set the volume of sprite 10 to gDVSound
  32.     set gStartMov to 0
  33.   end if
  34.   if gMtype then
  35.     set the controller of cast gChMov1 to 1
  36.   end if
  37.   if the mouseDown then
  38.     set gPress to 1
  39.   end if
  40.   set gDVSound to the volume of sprite 10
  41. end
  42.  
  43. on exitFrame
  44.   global gChMov1, gMtype, gSec, gPtime, gEsc, gMarker, gColor, gStartMov, gKey
  45.   if (the movieTime of sprite 10 >= the stopTime of sprite 10) or (gSec <> 1) then
  46.     set the cursor of sprite 2 to 0
  47.     set the cursor of sprite 3 to 0
  48.     set the cursor of sprite 4 to 0
  49.     set the cursor of sprite 5 to 0
  50.     set the cursor of sprite 6 to 0
  51.     set the cursor of sprite 7 to 0
  52.     set the movieRate of sprite 10 to 0
  53.     if gSec = 4 then
  54.       set gSec to 1
  55.       set gPtime to the movieTime of sprite 10
  56.       set the visible of sprite 10 to 0
  57.       go(the frame + 1)
  58.     else
  59.       set the movieTime of sprite 10 to 0
  60.       set the pausedAtStart of cast gChMov1 to 1
  61.       if (gSec = 1) or (gSec = 2) then
  62.         set gSec to 2
  63.         set gPtime to 0
  64.         set gStartMov to 1
  65.         go(the frame + 2)
  66.       else
  67.         if gSec = 6 then
  68.           set gPtime to 0
  69.           set gStartMov to 1
  70.           go(the frame + 4)
  71.         else
  72.           if gSec = 3 then
  73.             set gKey to 1
  74.             set gMarker to "UP"
  75.             unLoadCast(gChMov1)
  76.             if gMtype = 0 then
  77.               set the visible of sprite 10 to 0
  78.             end if
  79.             go(gEsc)
  80.           else
  81.             if gSec = 5 then
  82.               gameExit()
  83.             end if
  84.           end if
  85.         end if
  86.       end if
  87.     end if
  88.   else
  89.     go(the frame)
  90.   end if
  91. end
  92.