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

  1. Ind = ScoreInd;
  2. Par = _parent.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 = - StrRep.length * 5;
  26. UserScore = _parent.Score;
  27. Selection.setFocus("UserName");
  28. _parent.Score = 0;
  29. stop();
  30.