home *** CD-ROM | disk | FTP | other *** search
/ Adephia Powerlink / AdephiaPowerlink-030102.iso / pc / Install / WorkFlow / Gui / MinReq.swf / scripts / frame_3 / DoAction.as
Encoding:
Text File  |  2002-04-02  |  8.3 KB  |  165 lines

  1. function LayoutFrameRecommended()
  2. {
  3.    _level0.SetText("Title0",_root.generalError_main_title_recommended,_root.GeneralError_identifier);
  4.    _level0.SetText("Text0",_root.generalError_main_p_recommended,_root.GeneralError_identifier);
  5.    _level0.SetHintText(_root.generalError_hint_p_recommended,_root.GeneralError_identifier);
  6.    _level0.SetHelpText(_root.generalError_help_p_recommended,_root.GeneralError_identifier);
  7.    var CancelButton = _level0.RequestButton("CancelButton","CancelButtonPlacement",_root.GeneralError_identifier);
  8.    var MoreButton = _level0.RequestButton("MoreButton","MoreButtonPlacement",_root.GeneralError_identifier);
  9.    var DetailsBtn = _level0.RequestButton("DetailsBtn","DetailsButtonPlacement",_root.GeneralError_identifier);
  10.    var NextBtn = _level0.RequestButton("NextBtn","NextButtonPlacement",_root.GeneralError_identifier);
  11.    CancelButton.TextBox.Text = _root.generalError_nav_button_cancel;
  12.    MoreButton.TextBox.Text = _root.generalError_nav_button_more;
  13.    DetailsBtn.TextBox.Text = _root.generalError_nav_button_details;
  14.    NextBtn.TextBox.Text = _root.generalError_nav_button_next;
  15.    CancelButton.OnRelease = function()
  16.    {
  17.       fscommand("cancel","cancel");
  18.       _level0.FireSignal(_root.GeneralError_identifier);
  19.    };
  20.    DetailsBtn.OnRelease = function()
  21.    {
  22.       JumpToDetails(RecommendedGeneralRequirementsNotMet);
  23.    };
  24.    MoreButton.OnRelease = function()
  25.    {
  26.       _level0.ToggleHelp(_root.GeneralError_identifier);
  27.    };
  28.    NextBtn.OnRelease = function()
  29.    {
  30.       fscommand("continue","continue");
  31.       _level0.FireSignal(_root.GeneralError_identifier);
  32.    };
  33.    _level0.AddTabOrder("NextBtn",_root.GeneralError_identifier,true);
  34.    _level0.AddTabOrder("DetailsBtn",_root.GeneralError_identifier);
  35.    _level0.AddTabOrder("CancelButton",_root.GeneralError_identifier);
  36.    _root.ErrorStringRamRequirementMet = _root.generalError_main_error_required_p_RAM;
  37.    _root.ErrorStringRamRecommendationMet = _root.generalError_main_error_recommended_p_RAM;
  38.    _root.ErrorStringCpuSpeedRequirementMet = _root.generalError_main_error_required_p_CpuSpeed;
  39.    _root.ErrorStringCpuSpeedRecommendationMet = _root.generalError_main_error_recommended_p_CpuSpeed;
  40.    _root.ErrorStringCpuVendorRequirementMet = _root.generalError_main_error_required_p_CpuVendor;
  41.    _root.ErrorStringCpuVendorRecommendationMet = _root.generalError_main_error_recommended_p_CpuVendor;
  42.    _root.ErrorStringDiskSpaceRequirementMet = _root.generalError_main_error_required_p_DiskSpace;
  43.    _root.ErrorStringDiskSpaceRecommendationMet = _root.generalError_main_error_recommended_p_DiskSpace;
  44.    _root.ErrorStringDiskSpaceOnSystemRequirementMet = _root.generalError_main_error_required_p_DiskSpaceOnSystem;
  45.    _root.ErrorStringDiskSpaceOnSystemRecommendationMet = _root.generalError_main_error_recommended_p_DiskSpaceOnSystem;
  46.    _root.ErrorStringOsRequirementMet = _root.generalError_main_error_required_p_Os;
  47.    _root.ErrorStringOsRecommendationMet = _root.generalError_main_error_recommended_p_Os;
  48.    _root.TransformedErrorString = CreateGeneralErrorString(undefined,_root.generalError_main_p_append);
  49.    _level0.Transform("TransformedErrorString");
  50.    _level0.SetShowSwf(false);
  51. }
  52. function LayoutFrameRequired()
  53. {
  54.    _level0.SetText("Title0",_root.generalError_main_title_required,_root.GeneralError_identifier);
  55.    _level0.SetText("Text0",_root.generalError_main_p_required,_root.GeneralError_identifier);
  56.    _level0.SetHintText(_root.generalError_hint_p_required,_root.GeneralError_identifier);
  57.    _level0.SetHelpText(_root.generalError_help_p_required,_root.GeneralError_identifier);
  58.    var CancelButton = _level0.RequestButton("CancelButton","CancelButtonPlacement",_root.GeneralError_identifier);
  59.    var MoreButton = _level0.RequestButton("MoreButton","MoreButtonPlacement",_root.GeneralError_identifier);
  60.    var DetailsBtn = _level0.RequestButton("DetailsBtn","DetailsButtonPlacement",_root.GeneralError_identifier);
  61.    CancelButton.TextBox.Text = _root.generalError_nav_button_cancel;
  62.    MoreButton.TextBox.Text = _root.generalError_nav_button_more;
  63.    DetailsBtn.TextBox.Text = _root.generalError_nav_button_details;
  64.    CancelButton.OnRelease = function()
  65.    {
  66.       fscommand("cancel","cancel");
  67.       _level0.FireSignal(_root.GeneralError_identifier);
  68.    };
  69.    DetailsBtn.OnRelease = function()
  70.    {
  71.       JumpToDetails(GeneralError);
  72.    };
  73.    MoreButton.OnRelease = function()
  74.    {
  75.       _level0.ToggleHelp(_root.GeneralError_identifier);
  76.    };
  77.    _level0.AddTabOrder("DetailsBtn",_root.GeneralError_identifier,true);
  78.    _level0.AddTabOrder("CancelButton",_root.GeneralError_identifier);
  79.    _root.ErrorStringRamRequirementMet = _root.generalError_main_error_required_p_RAM;
  80.    _root.ErrorStringRamRecommendationMet = _root.generalError_main_error_recommended_p_RAM;
  81.    _root.ErrorStringCpuSpeedRequirementMet = _root.generalError_main_error_required_p_CpuSpeed;
  82.    _root.ErrorStringCpuSpeedRecommendationMet = _root.generalError_main_error_recommended_p_CpuSpeed;
  83.    _root.ErrorStringCpuVendorRequirementMet = _root.generalError_main_error_required_p_CpuVendor;
  84.    _root.ErrorStringCpuVendorRecommendationMet = _root.generalError_main_error_recommended_p_CpuVendor;
  85.    _root.ErrorStringDiskSpaceRequirementMet = _root.generalError_main_error_required_p_DiskSpace;
  86.    _root.ErrorStringDiskSpaceRecommendationMet = _root.generalError_main_error_recommended_p_DiskSpace;
  87.    _root.ErrorStringDiskSpaceOnSystemRequirementMet = _root.generalError_main_error_required_p_DiskSpaceOnSystem;
  88.    _root.ErrorStringDiskSpaceOnSystemRecommendationMet = _root.generalError_main_error_recommended_p_DiskSpaceOnSystem;
  89.    _root.ErrorStringOsRequirementMet = _root.generalError_main_error_required_p_Os;
  90.    _root.ErrorStringOsRecommendationMet = _root.generalError_main_error_recommended_p_Os;
  91.    _root.TransformedErrorString = CreateGeneralErrorString(undefined,_root.generalError_main_p_append);
  92.    _level0.Transform("TransformedErrorString");
  93.    _level0.SetShowSwf(false);
  94. }
  95. function TransformedErrorStringCB()
  96. {
  97.    _level0.ShowTextScroller("ScrollerMedium",1,_root.TransformedErrorString,false,_root.GeneralError_identifier);
  98.    _level0.SetShowSwf(true);
  99. }
  100. function LoadGeneralErrorVars()
  101. {
  102.    if(_root.GeneralErrorType == 1)
  103.    {
  104.       _root.GeneralError_identifier = _level0.SetLayoutObject("StdLayout",_target,"LayoutFrameRequired",_root.GeneralError_identifier);
  105.    }
  106.    else
  107.    {
  108.       _root.GeneralError_identifier = _level0.SetLayoutObject("StdLayout",_target,"LayoutFrameRecommended",_root.GeneralError_identifier);
  109.    }
  110. }
  111. function CreateGeneralErrorString(strErrorTextHeader, strErrorTextFooter)
  112. {
  113.    var tempErrorText;
  114.    tempErrorText = strErrorTextHeader;
  115.    if(RamRequirementMet == "false")
  116.    {
  117.       tempErrorText = tempErrorText add _root.ErrorStringRamRequirementMet;
  118.    }
  119.    else if(RamRecommendationMet == "false")
  120.    {
  121.       tempErrorText = tempErrorText add _root.ErrorStringRamRecommendationMet;
  122.    }
  123.    if(CpuSpeedRequirementMet == "false")
  124.    {
  125.       tempErrorText = tempErrorText add _root.ErrorStringCpuSpeedRequirementMet;
  126.    }
  127.    else if(CpuSpeedRecommendationMet == "false")
  128.    {
  129.       tempErrorText = tempErrorText add _root.ErrorStringCpuSpeedRecommendationMet;
  130.    }
  131.    if(CpuVendorRequirementMet == "false")
  132.    {
  133.       tempErrorText = tempErrorText add _root.ErrorStringCpuVendorRequirementMet;
  134.    }
  135.    else if(CpuVendorRecommendationMet == "false")
  136.    {
  137.       tempErrorText = tempErrorText add _root.ErrorStringCpuVendorRecommendationMet;
  138.    }
  139.    if(DiskSpaceRequirementMet == "false")
  140.    {
  141.       tempErrorText = tempErrorText add _root.ErrorStringDiskSpaceRequirementMet;
  142.    }
  143.    else if(DiskSpaceRecommendationMet == "false")
  144.    {
  145.       tempErrorText = tempErrorText add _root.ErrorStringDiskSpaceRecommendationMet;
  146.    }
  147.    if(DiskSpaceOnSystemRequirementMet == "false")
  148.    {
  149.       tempErrorText = tempErrorText add _root.ErrorStringDiskSpaceOnSystemRequirementMet;
  150.    }
  151.    else if(DiskSpaceOnSystemRecommendationMet == "false")
  152.    {
  153.       tempErrorText = tempErrorText add _root.ErrorStringDiskSpaceOnSystemRecommendationMet;
  154.    }
  155.    if(OsRequirementMet == "false")
  156.    {
  157.       tempErrorText = tempErrorText add _root.ErrorStringOsRequirementMet;
  158.    }
  159.    else if(OsRecommendationMet == "false")
  160.    {
  161.       tempErrorText = tempErrorText add _root.ErrorStringOsRecommendationMet;
  162.    }
  163.    return tempErrorText add strErrorTextFooter;
  164. }
  165.