home *** CD-ROM | disk | FTP | other *** search
/ Champak 45 / Vol 45.iso / games / bubblegu.swf / scripts / DefineSprite_825_endScreen / frame_1 / DoAction.as
Encoding:
Text File  |  2007-04-20  |  595 b   |  27 lines

  1. trace("+++++");
  2. trace(home.CumulativePoints);
  3. trace(home.CumulativePoints.puLevel1);
  4. trace(home.CumulativePoints.level1);
  5. var totalItems = 0;
  6. var userItems = home.CumulativePoints.collected;
  7. var h = 1;
  8. while(h <= home.totalLevels)
  9. {
  10.    var i = 0;
  11.    while(i < home["Level" + h].myPickups.length)
  12.    {
  13.       var k = 0;
  14.       while(k < home["Level" + h].myPickups[i].length)
  15.       {
  16.          totalItems++;
  17.          k++;
  18.       }
  19.       i++;
  20.    }
  21.    h++;
  22. }
  23. totalPoints = home.hud_BKG.points;
  24. pu = userItems + " / " + totalItems;
  25. trace("totalItems = " + totalItems);
  26. stop();
  27.