home *** CD-ROM | disk | FTP | other *** search
- trace("+++++");
- trace(home.CumulativePoints);
- trace(home.CumulativePoints.puLevel1);
- trace(home.CumulativePoints.level1);
- var totalItems = 0;
- var userItems = home.CumulativePoints.collected;
- var h = 1;
- while(h <= home.totalLevels)
- {
- var i = 0;
- while(i < home["Level" + h].myPickups.length)
- {
- var k = 0;
- while(k < home["Level" + h].myPickups[i].length)
- {
- totalItems++;
- k++;
- }
- i++;
- }
- h++;
- }
- totalPoints = home.hud_BKG.points;
- pu = userItems + " / " + totalItems;
- trace("totalItems = " + totalItems);
- stop();
-