home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 7.11 / 2002-01_-_Disc_7.11.iso / Data / items_bak.pcg / scripts / DefineSprite_79 / frame_5 / DoAction.as
Text File  |  2001-10-11  |  1KB  |  51 lines

  1. if(thisprocessor == "" & _parent.loadSysTimeOut >= newTime - startTime)
  2. {
  3.    newTime = getTimer();
  4.    gotoAndPlay(4);
  5. }
  6. else if(newTime - startTime < loadSysTimeOut)
  7. {
  8.    if(thisprocessor.indexOf("Pentium") != -1 | thisprocessor.indexOf("pentium") != -1)
  9.    {
  10.       _parent.Yprocessor = "Pentium " + speed + "MHz";
  11.    }
  12.    else if(thisprocessor.indexOf("AMD") != -1 | thisprocessor.indexOf("amd") != -1)
  13.    {
  14.       _parent.Yprocessor = "AMD " + speed + "MHz";
  15.    }
  16.    else
  17.    {
  18.       _parent.Yprocessor = thisprocessor.substring(0,15) + "... " + speed + "MHz";
  19.    }
  20.    _parent.YRAM = thisram + "MB";
  21.    hdFree = int(thisfreehd.substr(thisfreehd.indexOf(":") + 1));
  22.    rawHDfree = hdFree;
  23.    if(1000 < hdFree)
  24.    {
  25.       _parent.YHD = thisfreehd.substr(0,thisfreehd.indexOf(":") + 1) + " " + String(hdFree / 1000) + "GB";
  26.    }
  27.    else
  28.    {
  29.       _parent.YHD = thisfreehd.substr(0,thisfreehd.indexOf(":") + 1) + " " + String(hdFree) + "MB";
  30.    }
  31.    if(thisaccel.indexOf("GDI") == -1)
  32.    {
  33.       _parent.YAPI = thisaccel;
  34.    }
  35.    else
  36.    {
  37.       _parent.YAPI = "No 3D Card Found";
  38.    }
  39.    _parent.YDX = directxversion;
  40. }
  41. else
  42. {
  43.    _parent.Yprocessor = "Scan Error";
  44.    _parent.YRAM = "Scan Error";
  45.    _parent.YHD = "Scan Error";
  46.    _parent.YAPI = "Scan Error";
  47.    _parent.YDX = "Scan Error";
  48. }
  49. gotoAndStop(1);
  50. _parent.gotoAndPlay("demos");
  51.