home *** CD-ROM | disk | FTP | other *** search
/ Champak 48 / cdrom_image.iso / Games / antipacman.swf / scripts / frame_13 / DoAction.as
Encoding:
Text File  |  2007-10-01  |  476 b   |  27 lines

  1. Music.stop();
  2. Ind = ScoreInd;
  3. Par = Score;
  4. StrRep = String(Par);
  5. dg = 0;
  6. while(dg <= 10)
  7. {
  8.    if(dg < StrRep.length)
  9.    {
  10.       Ind["d" + dg]._visible = true;
  11.       if(StrRep.charAt(dg) == "-")
  12.       {
  13.          Ind["d" + dg].gotoAndStop(11);
  14.       }
  15.       else
  16.       {
  17.          Ind["d" + dg].gotoAndStop(Number(StrRep.charAt(dg)) + 1);
  18.       }
  19.    }
  20.    else
  21.    {
  22.       Ind["d" + dg]._visible = false;
  23.    }
  24.    dg++;
  25. }
  26. Ind._x = 225 - StrRep.length * 5;
  27.