home *** CD-ROM | disk | FTP | other *** search
/ Champak 112 / jogo-disk-112.iso / Games / mon_the_monkey.swf / scripts / frame_8 / DoAction.as
Text File  |  2010-07-14  |  942b  |  37 lines

  1. play();
  2. ir = 1;
  3. while(ir <= 10)
  4. {
  5.    xxnama = "namaBretto" + ir;
  6.    yynama = "namanya" + ir;
  7.    xxskor = "scorenya" + ir;
  8.    yyskor = "scoreBretto" + ir;
  9.    adaSkor = false;
  10.    if(score > Number(this[xxskor]))
  11.    {
  12.       Cookies = SharedObject.getLocal(xxnama,"/");
  13.       Cookies.data.txt = nama;
  14.       Cookies = SharedObject.getLocal(yyskor,"/");
  15.       Cookies.data.txt = score;
  16.       adaSkor = true;
  17.       jr = 10;
  18.       while(jr >= ir + 1)
  19.       {
  20.          xxnama2 = "namaBretto" + jr;
  21.          yynama2 = "namanya" + String(jr - 1);
  22.          xxskor2 = "scorenya" + String(jr - 1);
  23.          yyskor2 = "scoreBretto" + jr;
  24.          Cookies = SharedObject.getLocal(xxnama2,"/");
  25.          Cookies.data.txt = this[yynama2];
  26.          Cookies = SharedObject.getLocal(yyskor2,"/");
  27.          Cookies.data.txt = this[xxskor2];
  28.          jr--;
  29.       }
  30.    }
  31.    if(adaSkor == true)
  32.    {
  33.       ir = 10;
  34.    }
  35.    ir++;
  36. }
  37.