home *** CD-ROM | disk | FTP | other *** search
/ Media Gallery 1995 June / MG6.ISO / mg.exe / mg.DXR / 00012.ls < prev    next >
Encoding:
Text File  |  1995-04-19  |  1.6 KB  |  69 lines

  1. on startMovie
  2.   set the searchPath to list()
  3.   append(the searchPath, the pathName & "data\")
  4.   append(the searchPath, the pathName & "data\mgdvid\")
  5.   append(the searchPath, the pathName & "data\mgmod\")
  6.   append(the searchPath, the pathName & "data\mgtmod\")
  7.   append(the searchPath, the pathName & "data\mgzmod\")
  8.   openXLib(the pathName & "data\f.dll")
  9.   openXLib(the pathName & "data\w.dll")
  10.   checksystem()
  11. end
  12.  
  13. on checksystem
  14.   if the shiftDown then
  15.     set ramtext to "RAM Check" & RETURN & RETURN & "Total: " & the memorysize / 1024 && "Kb" & RETURN & "Frei: " & the freeBytes / 1024 && "Kb"
  16.     alert(ramtext)
  17.   end if
  18.   if the colorDepth < 8 then
  19.     go("col")
  20.   else
  21.     if isQT() = 0 then
  22.       go("qt")
  23.     else
  24.       goMovie()
  25.     end if
  26.   end if
  27. end
  28.  
  29. on isQT
  30.   mci("open qtwvideo alias testvideo")
  31.   set r to the result
  32.   if r contains "error" then
  33.     return 0
  34.     exit
  35.   else
  36.     mci("info testvideo version")
  37.     set rr to the result
  38.     mci("close testvideo")
  39.     if (rr contains "1.") and not (rr contains "2.") then
  40.       return 0
  41.       exit
  42.     end if
  43.     return 1
  44.   end if
  45. end
  46.  
  47. on goMovie
  48.   cursor(4)
  49.   set theFile to FileIO(mnew, "read", the pathName & "mg.dir")
  50.   if objectp(theFile) then
  51.     theFile(mdispose)
  52.     go(1, "mg.dir")
  53.     exit
  54.   end if
  55.   set theFile to FileIO(mnew, "read", the pathName & "mg.dxr")
  56.   if objectp(theFile) then
  57.     theFile(mdispose)
  58.     go(1, "mg.dxr")
  59.     exit
  60.   end if
  61.   set theFile to FileIO(mnew, "read", the pathName & "mg.dig")
  62.   if objectp(theFile) then
  63.     theFile(mdispose)
  64.     go(1, "mg.dig")
  65.     exit
  66.   end if
  67.   cursor(4)
  68. end
  69.