home *** CD-ROM | disk | FTP | other *** search
/ The Museum Of Anything Goes / MOAG.bin / pc / opendata / moagstrt.dir / 00006.ls < prev    next >
Encoding:
Text File  |  1995-03-16  |  1.3 KB  |  67 lines

  1. on TESTMEMORY
  2.   global gXLibPath
  3.   if the machineType <> 256 then
  4.   end if
  5. end
  6.  
  7. on stopMovie
  8.   global gMemory
  9.   if objectp(gMemory) then
  10.     gMemory(mdispose)
  11.   end if
  12. end
  13.  
  14. on INITIALIZEMEMORY
  15.   global gMemory
  16.   if objectp(gMemory) then
  17.     gMemory(mdispose)
  18.   end if
  19.   set theXlib to CONVERTCDNUMSTRTOMOVIE("MemoryXLib")
  20.   openXLib(theXlib)
  21.   set gMemory to Memory(mnew)
  22.   if not objectp(gMemory) then
  23.     alert("Memory XObject could not initialize.")
  24.     closeXLib(theXlib)
  25.     exit
  26.   end if
  27.   CHECKVM()
  28. end
  29.  
  30. on CHECKVM
  31.   global gMemory
  32.   set VMCode to gMemory(mGetVM)
  33.   set theXlib to CONVERTCDNUMSTRTOMOVIE("MemoryXLib")
  34.   closeXLib(theXlib)
  35.   if VMCode <> 0 then
  36.     GOTOAFRAME("MemError")
  37.   end if
  38. end
  39.  
  40. on ERRORSTR
  41.   set str1 to "Warning: This computer has virtual memory turned on, "
  42.   set str2 to "Macromind Director Version 4.03 does not support virtual memory. "
  43.   set str3 to "Please turn virtual memory off in the 'Memory' control panel and "
  44.   set str4 to "restart your computer. --Wayzata Technical Support 1-800-377-7321"
  45.   set errData to str1 & str2 & str3 & str4
  46.   return errData
  47. end
  48.  
  49. on DOQUIT
  50.   global gMemory
  51.   if objectp(gMemory) then
  52.     gMemory(mdispose)
  53.   end if
  54.   quit()
  55. end
  56.  
  57. on DOCONTINUE
  58.   go("StartCD")
  59. end
  60.  
  61. on CHECKCOLORDEPTH
  62.   set anum to the colorDepth
  63.   if anum <> 8 then
  64.     go("BadColor")
  65.   end if
  66. end
  67.