home *** CD-ROM | disk | FTP | other *** search
/ Champak 48 / cdrom_image.iso / Games / antipacman.swf / scripts / DefineButton2_246 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2007-10-01  |  1.7 KB  |  61 lines

  1. on(press){
  2.    if(UserName.length > 0)
  3.    {
  4.       Masks = new Array("DSKJHiurhg987jsdlLJHjkdsfhiriurehgKJDh9i","ujhfLJKDFHuiefo8909(9904985","asFREfpirgj8(UJUhhljhh&dkjhfuEWru","sdgajghjJHuoweppsdnniuhfr(%$","jkhgtro88)(rgh435&84657/","3590820687H985HHUuehuefwoianfnHNurehfruUHFEouh","RIngiuoirenuiNU9987Hu774t0y/9898yhrgu","RE98548ghNhr09gh87097y5t7hh08(=/CFH704t57h7hNH0958uy-?(u","54t958(987y667980=)(7598y7987fyruchuih0/9875y87");
  5.       Data = new Array();
  6.       Data[0] = random(Masks.length);
  7.       Data[1] = random(Masks[Data[0]].length);
  8.       Data[2] = UserName.length;
  9.       ScoreSt = UserScore.toString();
  10.       Data[3] = ScoreSt.length;
  11.       i = 0;
  12.       while(i < Data[2])
  13.       {
  14.          Data[5 + i] = ord(UserName.charAt(i));
  15.          i++;
  16.       }
  17.       i = 0;
  18.       while(i < Data[3])
  19.       {
  20.          Data[5 + Data[2] + i] = ord(ScoreSt.charAt(i));
  21.          i++;
  22.       }
  23.       CheckSum = 0;
  24.       i = 5;
  25.       while(i < Data.length)
  26.       {
  27.          CheckSum += Data[i];
  28.          i++;
  29.       }
  30.       Data[4] = CheckSum % 100;
  31.       COS = Data[1];
  32.       i = 2;
  33.       while(i < Data.length)
  34.       {
  35.          MaskCo = ord(Masks[Data[0]].charAt(COS)) % 40;
  36.          if(MaskCo == 0)
  37.          {
  38.             MaskCo = 40;
  39.          }
  40.          Data[i] += ord(Masks[Data[0]].charAt(COS));
  41.          Data[i] *= MaskCo;
  42.          COS++;
  43.          if(COS >= Masks[Data[0]].length)
  44.          {
  45.             COS = 0;
  46.          }
  47.          i++;
  48.       }
  49.       Output = Data.join("x");
  50.       Dt.res = Output;
  51.       SendData = true;
  52.       RName = UserName;
  53.       RScore = UserScore;
  54.       gotoAndStop(2);
  55.    }
  56.    else
  57.    {
  58.       Nm.gotoAndPlay(2);
  59.    }
  60. }
  61.