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

  1. function LayoutFrame()
  2. {
  3.    _level0.SetText("Title0",_root.MakeSelection_main_title,_root.MakeSelection_Identifier);
  4.    _level0.SetText("Text0",_root.MakeSelection_main_p_default,_root.MakeSelection_Identifier);
  5.    var arTemp = new Array();
  6.    var nCounter = 0;
  7.    var tempObject;
  8.    var nNumOfNics = parseInt(NUM_STATIC_NICS,10);
  9.    while(nCounter < nNumOfNics)
  10.    {
  11.       tempObject = new Object();
  12.       tempObject.Item = eval("STATIC_NIC_NUM" + String(nCounter));
  13.       arTemp.push(tempObject);
  14.       nCounter++;
  15.    }
  16.    _level0.ShowListBox(1,arTemp,_root.MakeSelection_Identifier);
  17.    _level0.SetHintText(_root.MakeSelection_hint_p_default,_root.MakeSelection_Identifier);
  18.    _level0.SetHelpText(_root.MakeSelection_help_p_default,_root.MakeSelection_Identifier);
  19.    var CancelButton = _level0.RequestButton("CancelBtn","CancelButtonPlacement",_root.MakeSelection_Identifier);
  20.    var MoreButton = _level0.RequestButton("MoreBtn","MoreButtonPlacement",_root.MakeSelection_Identifier);
  21.    var FlipButton = _level0.RequestButton("FlipButton","FlipToDHCPButtonPlacement",_root.MakeSelection_Identifier);
  22.    CancelButton.TextBox.Text = _root.MakeSelection_nav_button_cancel;
  23.    MoreButton.TextBox.Text = _root.MakeSelection_nav_button_more;
  24.    FlipButton.TextBox.Text = _root.MakeSelection_nav_button_flip;
  25.    CancelButton.OnRelease = function()
  26.    {
  27.       fscommand("cancel","cancel");
  28.       _level0.FireSignal(_root.MakeSelection_Identifier);
  29.    };
  30.    MoreButton.OnRelease = function()
  31.    {
  32.       _level0.ToggleHelp(_root.MakeSelection_Identifier);
  33.    };
  34.    FlipButton.OnRelease = function()
  35.    {
  36.       fscommand("selection_made",_root.AdapterSelection);
  37.       _level0.FireSignal(_root.MakeSelection_Identifier);
  38.    };
  39.    _level0.AddTabOrder("FlipButton",_root.MakeSelection_Identifier,true);
  40.    _level0.AddTabOrder("CancelBtn",_root.MakeSelection_Identifier);
  41. }
  42. function LoadMakeSelectionVars()
  43. {
  44.    _root.MakeSelection_Identifier = _level0.SetLayoutObject("StdLayout",_target,"LayoutFrame",_root.MakeSelection_Identifier);
  45. }
  46. function OnSelectionChange(pSelection)
  47. {
  48.    _root.AdapterSelection = pSelection.Item;
  49. }
  50.