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

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