home *** CD-ROM | disk | FTP | other *** search
/ Drops Desktop CD-ROM Collection / Drops Desktop CD-ROM Collection.iso / files / photobook / Help / regist.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2003-05-08  |  3.1 KB  |  126 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.domain();
  22.    }
  23. }
  24. function loadMC()
  25. {
  26.    if(_root.res_code == 0)
  27.    {
  28.       loadMovie("http://www.kuraemon.com/software/regist/",_root.baseMC.targetMC);
  29.       _root.nextFrame();
  30.    }
  31.    else if(_root.res_code != 2)
  32.    {
  33.       alertMC.gotoAndStop(2);
  34.       alertMC.message = _root.res_message;
  35.    }
  36. }
  37. function emailCheck()
  38. {
  39.    var message = "{invalid_utf8=143}{invalid_utf8=227}{invalid_utf8=139}L{invalid_utf8=130}╠â{invalid_utf8=129}{invalid_utf8=129}[{invalid_utf8=131}{invalid_utf8=139}{invalid_utf8=131}A{invalid_utf8=131}h{invalid_utf8=131}{invalid_utf8=140}{invalid_utf8=131}X{invalid_utf8=130}┼è╘êßéó{invalid_utf8=130}{invalid_utf8=160}{invalid_utf8=130}{invalid_utf8=232}{invalid_utf8=130}{invalid_utf8=220}{invalid_utf8=130}{invalid_utf8=185}{invalid_utf8=130}±é⌐üH";
  40.    if(_root.res_code == 0)
  41.    {
  42.       if(_root.serial_enable == 1)
  43.       {
  44.          alertMC.gotoAndStop(3);
  45.          alertMC.lavel = "pass";
  46.          alertMC.email = _root.baseMC.targetMC.email;
  47.          alertMC.message = message;
  48.       }
  49.       else if(_root.serial_enable == 0)
  50.       {
  51.          alertMC.gotoAndStop(3);
  52.          alertMC.lavel = "digipass";
  53.          alertMC.email = _root.baseMC.targetMC.email;
  54.          alertMC.message = message;
  55.       }
  56.    }
  57.    else if(_root.res_code == 401)
  58.    {
  59.       if(_root.serial_enable == 1)
  60.       {
  61.          alertMC.gotoAndStop(3);
  62.          alertMC.lavel = "serial";
  63.          alertMC.email = _root.baseMC.targetMC.email;
  64.          alertMC.message = message;
  65.       }
  66.       else if(_root.serial_enable == 0)
  67.       {
  68.          alertMC.gotoAndStop(3);
  69.          alertMC.lavel = "complite";
  70.          alertMC.email = _root.baseMC.targetMC.email;
  71.          alertMC.message = message;
  72.       }
  73.    }
  74.    else if(_root.res_code != 2)
  75.    {
  76.       alertMC.gotoAndStop(2);
  77.       alertMC.message = _root.res_message;
  78.    }
  79. }
  80. function serialCheck()
  81. {
  82.    if(_root.res_code == 0)
  83.    {
  84.       _root.baseMC.targetMC.gotoAndStop("complite");
  85.    }
  86.    else if(_root.res_code != 2)
  87.    {
  88.       alertMC.gotoAndStop(2);
  89.       alertMC.message = _root.res_message;
  90.    }
  91. }
  92. function stay()
  93. {
  94.    if(_root.res_code == 0)
  95.    {
  96.       alertMC.gotoAndStop(2);
  97.       alertMC.message = _root.res_message;
  98.    }
  99.    else if(_root.res_code != 2)
  100.    {
  101.       alertMC.gotoAndStop(2);
  102.       alertMC.message = _root.res_message;
  103.    }
  104. }
  105. function domain()
  106. {
  107.    if(_root.res_code == 0)
  108.    {
  109.       _root.baseMC.targetMC.gotoAndStop("complite");
  110.    }
  111.    else if(_root.res_code != 2)
  112.    {
  113.       if(_root.res_code == 404)
  114.       {
  115.          alertMC.gotoAndStop(2);
  116.          alertMC.message = _root.res_message;
  117.       }
  118.    }
  119. }
  120. is_connect = "";
  121. email = "";
  122. password = "";
  123. serial = "";
  124. fs = "close";
  125. load_state = false;
  126.