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

  1. loadMovieNum("Data/" + eval("demoname" + TheCurrentDemo) + ".pcg",2);
  2. theBox1._y = DemoBox_y;
  3. gamename = eval("demoname" + TheCurrentDemo);
  4. description = eval("demodesc" + TheCurrentDemo);
  5. processor = eval("processor" + TheCurrentDemo) + " " + eval("speed" + TheCurrentDemo) + "MHz";
  6. RAM = eval("RAM" + TheCurrentDemo) + "MB";
  7. rawgameHD = int(eval("HD" + TheCurrentDemo));
  8. readme = eval("readmepath" + TheCurrentDemo);
  9. if(eval("readmepath" + TheCurrentDemo) != "")
  10. {
  11.    ReadMeControl.gotoAndStop(2);
  12. }
  13. else
  14. {
  15.    ReadMeControl.gotoAndStop(1);
  16. }
  17. if(1000 < rawgameHD)
  18. {
  19.    HD = int(eval("HD" + TheCurrentDemo)) / 1000 + "GB";
  20. }
  21. else
  22. {
  23.    HD = int(eval("HD" + TheCurrentDemo)) + "MB";
  24. }
  25. API = eval("API" + TheCurrentDemo);
  26. OtherReq = eval("OtherReq" + TheCurrentDemo);
  27. publisher = eval("demopub" + TheCurrentDemo);
  28. developer = eval("demodev" + TheCurrentDemo);
  29. url = eval("demourl" + TheCurrentDemo);
  30. gameDX = eval("gameDX" + TheCurrentDemo);
  31. if(eval("exclusive" + TheCurrentDemo) == 1)
  32. {
  33.    exclusiveButton._Alpha = 100;
  34. }
  35. else
  36. {
  37.    exclusiveButton._Alpha = 0;
  38. }
  39. if(Yprocessor == "Scan Error")
  40. {
  41.    check1.gotoAndStop(3);
  42. }
  43. else if(speed < int(eval("speed" + TheCurrentDemo)))
  44. {
  45.    check1.gotoAndStop(2);
  46. }
  47. else
  48. {
  49.    check1.gotoAndStop(1);
  50. }
  51. if(YRAM == "Scan Error")
  52. {
  53.    check2.gotoAndStop(3);
  54. }
  55. else if(int(thisram) < int(eval("RAM" + TheCurrentDemo)))
  56. {
  57.    check2.gotoAndStop(2);
  58. }
  59. else
  60. {
  61.    check2.gotoAndStop(1);
  62. }
  63. if(YHD == "Scan Error")
  64. {
  65.    check3.gotoAndStop(3);
  66. }
  67. else if(rawHDfree < int(eval("HD" + TheCurrentDemo)))
  68. {
  69.    check3.gotoAndStop(2);
  70. }
  71. else
  72. {
  73.    check3.gotoAndStop(1);
  74. }
  75. if(YAPI == "Scan Error")
  76. {
  77.    check4.gotoAndStop(3);
  78. }
  79. else if(eval("API" + TheCurrentDemo) == "Yes")
  80. {
  81.    if(thisaccel.indexOf("GDI") != -1)
  82.    {
  83.       check4.gotoAndStop(2);
  84.    }
  85.    else
  86.    {
  87.       check4.gotoAndStop(1);
  88.    }
  89. }
  90. else
  91. {
  92.    check4.gotoAndStop(1);
  93. }
  94. if(YDX == "Scan Error")
  95. {
  96.    check5.gotoAndStop(3);
  97. }
  98. else if(YDX < gameDX)
  99. {
  100.    check5.gotoAndStop(2);
  101.    installDX.gotoAndStop(2);
  102. }
  103. else
  104. {
  105.    check5.gotoAndStop(1);
  106.    installDX.gotoAndStop(1);
  107. }
  108. if(eval("demorating" + theCurrentDemo) == "mature")
  109. {
  110.    therating.gotoAndStop(1);
  111. }
  112. else if(eval("demorating" + theCurrentDemo) == "teen")
  113. {
  114.    therating.gotoAndStop(2);
  115. }
  116. else if(eval("demorating" + theCurrentDemo) == "everyone")
  117. {
  118.    therating.gotoAndStop(3);
  119. }
  120. else
  121. {
  122.    therating.gotoAndStop(4);
  123. }
  124.