home *** CD-ROM | disk | FTP | other *** search
/ Adephia Powerlink / AdephiaPowerlink-030102.iso / pc / Install / WorkFlow / Gui / MinReq.swf / scripts / frame_1 / DoAction_4.as < prev    next >
Encoding:
Text File  |  2002-04-02  |  5.7 KB  |  258 lines

  1. function PerformInProgressUpdate()
  2. {
  3.    if(CpuSpeedTested eq "true")
  4.    {
  5.       if(CpuSpeedRequirementMet eq "false")
  6.       {
  7.          CpuSpeedStatus.StatusIcon.SetStatus(3);
  8.       }
  9.       else if(CpuSpeedRecommendationMet eq "false")
  10.       {
  11.          CpuSpeedStatus.StatusIcon.SetStatus(4);
  12.       }
  13.       else
  14.       {
  15.          CpuSpeedStatus.StatusIcon.SetStatus(2);
  16.       }
  17.    }
  18.    if(CpuVendorTested eq "true")
  19.    {
  20.       if(CpuVendorRequirementMet eq "false")
  21.       {
  22.          CpuVendorStatus.StatusIcon.SetStatus(3);
  23.       }
  24.       else if(CpuVendorRecommendationMet eq "false")
  25.       {
  26.          CpuVendorStatus.StatusIcon.SetStatus(4);
  27.       }
  28.       else
  29.       {
  30.          CpuVendorStatus.StatusIcon.SetStatus(2);
  31.       }
  32.    }
  33.    if(RamTested eq "true")
  34.    {
  35.       if(RamRequirementMet eq "false")
  36.       {
  37.          RamStatus.StatusIcon.SetStatus(3);
  38.       }
  39.       else if(RamRecommendationMet eq "false")
  40.       {
  41.          RamStatus.StatusIcon.SetStatus(4);
  42.       }
  43.       else
  44.       {
  45.          RamStatus.StatusIcon.SetStatus(2);
  46.       }
  47.    }
  48.    if(OsTested eq "true")
  49.    {
  50.       if(OsRequirementMet eq "false")
  51.       {
  52.          OsStatus.StatusIcon.SetStatus(3);
  53.       }
  54.       else if(OsRecommendationMet eq "false")
  55.       {
  56.          OsStatus.StatusIcon.SetStatus(4);
  57.       }
  58.       else
  59.       {
  60.          OsStatus.StatusIcon.SetStatus(2);
  61.       }
  62.    }
  63.    if(DiskSpaceTested eq "true")
  64.    {
  65.       if(DiskSpaceRequirementMet eq "false")
  66.       {
  67.          DiskSpaceStatus.StatusIcon.SetStatus(3);
  68.       }
  69.       else if(DiskSpaceRecommendationMet eq "false")
  70.       {
  71.          DiskSpaceStatus.StatusIcon.SetStatus(4);
  72.       }
  73.       else
  74.       {
  75.          DiskSpaceStatus.StatusIcon.SetStatus(2);
  76.       }
  77.    }
  78.    if(DiskSpaceOnSystemTested eq "true")
  79.    {
  80.       tempOb = eval(DiskSpaceOnSystemDriveStatus add ".StatusIcon");
  81.       if(DiskSpaceOnSystemRequirementMet eq "false")
  82.       {
  83.          tempOb.SetStatus(3);
  84.       }
  85.       else if(DiskSpaceOnSystemRecommendationMet eq "false")
  86.       {
  87.          tempOb.SetStatus(4);
  88.       }
  89.       else
  90.       {
  91.          tempOb.SetStatus(2);
  92.       }
  93.    }
  94.    if(TcpipTested eq "true")
  95.    {
  96.       if(TcpipRequirementMet eq "false")
  97.       {
  98.          TcpipInstalledStatus.StatusIcon.SetStatus(3);
  99.       }
  100.       else if(TcpipRecommendationMet eq "false")
  101.       {
  102.          TcpipInstalledStatus.StatusIcon.SetStatus(4);
  103.       }
  104.       else
  105.       {
  106.          TcpipInstalledStatus.StatusIcon.SetStatus(2);
  107.       }
  108.    }
  109.    if(NicPresentTested eq "true")
  110.    {
  111.       if(NicPresentRequirementMet eq "false")
  112.       {
  113.          NicPresentStatus.StatusIcon.SetStatus(3);
  114.       }
  115.       else if(NicPresentRecommendationMet eq "false")
  116.       {
  117.          NicPresentStatus.StatusIcon.SetStatus(4);
  118.       }
  119.       else
  120.       {
  121.          NicPresentStatus.StatusIcon.SetStatus(2);
  122.       }
  123.    }
  124.    if(SpecificNicPresentTested eq "true")
  125.    {
  126.       if(SpecificNicPresentRequirementMet eq "false")
  127.       {
  128.          SpecificNicPresentStatus.StatusIcon.SetStatus(3);
  129.       }
  130.       else if(SpecificNicPresentRecommendationMet eq "false")
  131.       {
  132.          SpecificNicPresentStatus.StatusIcon.SetStatus(4);
  133.       }
  134.       else
  135.       {
  136.          SpecificNicPresentStatus.StatusIcon.SetStatus(2);
  137.       }
  138.    }
  139.    if(NoStaticDialupTested eq "true")
  140.    {
  141.       if(NoStaticDialupRequirementMet eq "false")
  142.       {
  143.          NoStaticDialupStatus.StatusIcon.SetStatus(3);
  144.       }
  145.       else if(NoStaticDialupRecommendationMet eq "false")
  146.       {
  147.          NoStaticDialupStatus.StatusIcon.SetStatus(4);
  148.       }
  149.       else
  150.       {
  151.          NoStaticDialupStatus.StatusIcon.SetStatus(2);
  152.       }
  153.    }
  154. }
  155. function GetFriendlyOS(strNastyString)
  156. {
  157.    fscommand("NASTYSTRING",strNastyString);
  158.    if(strNastyString eq "error")
  159.    {
  160.       return "Invalid";
  161.    }
  162.    if(strNastyString eq "win95osr1")
  163.    {
  164.       return "Windows 95 OSR1";
  165.    }
  166.    if(strNastyString eq "win95osr2")
  167.    {
  168.       return "Windows 95 OSR2";
  169.    }
  170.    if(strNastyString eq "win95osr2.5")
  171.    {
  172.       return "Windows 95 OSR2.5";
  173.    }
  174.    if(strNastyString eq "win98fe")
  175.    {
  176.       return "Windows 98 First Edition";
  177.    }
  178.    if(strNastyString eq "win98se")
  179.    {
  180.       return "Windows 98 Second Edition";
  181.    }
  182.    if(strNastyString eq "win98me")
  183.    {
  184.       return "Windows Millenium";
  185.    }
  186.    if(strNastyString eq "winnt4")
  187.    {
  188.       return "Windows NT4";
  189.    }
  190.    if(strNastyString eq "winnt4sp1")
  191.    {
  192.       return "Windows NT4 SP1";
  193.    }
  194.    if(strNastyString eq "winnt4sp2")
  195.    {
  196.       return "Windows NT4 SP2";
  197.    }
  198.    if(strNastyString eq "winnt4sp3")
  199.    {
  200.       return "Windows NT4 SP3";
  201.    }
  202.    if(strNastyString eq "winnt4sp4")
  203.    {
  204.       return "Windows NT4 SP4";
  205.    }
  206.    if(strNastyString eq "winnt4sp5")
  207.    {
  208.       return "Windows NT4 SP5";
  209.    }
  210.    if(strNastyString eq "winnt4sp6")
  211.    {
  212.       return "Windows NT4 SP6";
  213.    }
  214.    if(strNastyString eq "win2k")
  215.    {
  216.       return "Windows 2000";
  217.    }
  218. }
  219. function JumpToDetails(strPerformActionEXCall)
  220. {
  221.    _root.DetailsPerformActionEXCall = strPerformActionEXCall;
  222.    fscommand("details","button_click");
  223. }
  224. function DetailsTextCB()
  225. {
  226.    _root.DetailsInfoAttained = 1;
  227.    Details();
  228. }
  229. function JumpToFix(strSwf)
  230. {
  231.    _root.FixVarsSwfFile = strSwf;
  232.    Fix();
  233. }
  234. function GetCorrectHelpScene()
  235. {
  236.    if(_root.ActualOs.substring(0,5) eq "win2k")
  237.    {
  238.       return 1;
  239.    }
  240.    if(_root.ActualOs.substring(0,5) eq "winnt")
  241.    {
  242.       return 3;
  243.    }
  244.    if(_root.ActualOs.substring(0,4) eq "win9")
  245.    {
  246.       return 2;
  247.    }
  248.    if(_root.ActualOs.substring(0,4) eq "winm")
  249.    {
  250.       return 2;
  251.    }
  252.    if(_root.ActualOs.substring(0,5) eq "winxp")
  253.    {
  254.       return 4;
  255.    }
  256.    return undefined;
  257. }
  258.