home *** CD-ROM | disk | FTP | other *** search
/ PC User 2004 November / PCU1104CD1.iso / resource / design / files / digibok.EXE / HELP / regist.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2003-10-27  |  3.1 KB  |  139 lines

  1. function launcher(command)
  2. {
  3.    if(command == "step00")
  4.    {
  5.       _root.loadMC();
  6.    }
  7.    else if(command == "step01")
  8.    {
  9.       _root.emailCheck();
  10.    }
  11.    else if(command == "step02")
  12.    {
  13.       _root.serialCheck();
  14.    }
  15.    else if(command == "nonStep")
  16.    {
  17.       _root.stay();
  18.    }
  19.    else if(command == "domain")
  20.    {
  21.       _root.debug = "domain";
  22.       _root.domain();
  23.    }
  24. }
  25. function loadMC()
  26. {
  27.    if(_root.res_code == 0)
  28.    {
  29.       swf_url = "http://www.kuraemon.com/software/regist/" + productid;
  30.       loadMovie(swf_url,_root.baseMC.targetMC);
  31.       _root.nextFrame();
  32.    }
  33.    else if(_root.res_code != 2)
  34.    {
  35.       alertMC.gotoAndStop(2);
  36.       alertMC.message = _root.res_message;
  37.       _root.nextFrame();
  38.    }
  39. }
  40. function emailCheck()
  41. {
  42.    var message = "Please confirm the above address.";
  43.    if(_root.res_code == 0)
  44.    {
  45.       if(_root.serial_enable == 1)
  46.       {
  47.          _root.baseMC.targetMC._y = 400;
  48.          alertMC.gotoAndStop(3);
  49.          alertMC.lavel = "pass";
  50.          alertMC.email = _root.baseMC.targetMC.email;
  51.          alertMC.message = message;
  52.       }
  53.       else if(_root.serial_enable == 0)
  54.       {
  55.          _root.baseMC.targetMC._y = 400;
  56.          alertMC.gotoAndStop(3);
  57.          alertMC.lavel = "digipass";
  58.          alertMC.email = _root.baseMC.targetMC.email;
  59.          alertMC.message = message;
  60.       }
  61.    }
  62.    else if(_root.res_code == 401)
  63.    {
  64.       _root.baseMC.targetMC._y = 400;
  65.       alertMC.gotoAndStop(3);
  66.       alertMC.lavel = "serial";
  67.       alertMC.email = _root.baseMC.targetMC.email;
  68.       alertMC.message = message;
  69.    }
  70.    else if(_root.res_code != 2)
  71.    {
  72.       _root.baseMC.targetMC._y = 400;
  73.       alertMC.gotoAndStop(2);
  74.       alertMC.message = _root.res_message;
  75.    }
  76. }
  77. function serialCheck()
  78. {
  79.    if(_root.res_code == 0)
  80.    {
  81.       _root.baseMC.targetMC.gotoAndStop("complite");
  82.    }
  83.    else if(_root.res_code != 2)
  84.    {
  85.       _root.baseMC.targetMC._y = 400;
  86.       alertMC.gotoAndStop(2);
  87.       alertMC.message = _root.res_message;
  88.    }
  89. }
  90. function stay()
  91. {
  92.    if(_root.res_code == 0)
  93.    {
  94.       _root.baseMC.targetMC._y = 400;
  95.       alertMC.gotoAndStop(2);
  96.       alertMC.message = _root.res_message;
  97.    }
  98.    else if(_root.res_code != 2)
  99.    {
  100.       _root.baseMC.targetMC._y = 400;
  101.       alertMC.gotoAndStop(2);
  102.       alertMC.message = _root.res_message;
  103.    }
  104. }
  105. function domain()
  106. {
  107.    if(_root.res_code == 0)
  108.    {
  109.       if(_root.serial_enable == 1)
  110.       {
  111.          _root.baseMC.targetMC.gotoAndStop("serial");
  112.       }
  113.       else if(_root.serial_enable == 0)
  114.       {
  115.          _root.baseMC.targetMC.gotoAndStop("complite");
  116.          alertMC.gotoAndStop(1);
  117.       }
  118.    }
  119.    else if(_root.res_code != 2)
  120.    {
  121.       if(_root.res_code == 404)
  122.       {
  123.          _root.baseMC.targetMC._y = 400;
  124.          alertMC.gotoAndStop(2);
  125.          alertMC.message = _root.res_message;
  126.       }
  127.    }
  128. }
  129. is_connect = "";
  130. email = "";
  131. password = "";
  132. serial = "";
  133. fs = "close";
  134. load_state = false;
  135. productid = "";
  136. serial_enable = "";
  137. magreg = "";
  138. magregenable = "";
  139.