home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / sky-chopper.swf / scripts / frame_372 / DoAction.as
Encoding:
Text File  |  2005-09-29  |  393 b   |  18 lines

  1. totalFPS = 0;
  2. i = 0;
  3. while(i <= averageFPSvalues.length)
  4. {
  5.    totalFPS += averageFPSvalues[i];
  6.    i++;
  7. }
  8. averageFPS = int(totalFPS / averageFPSvalues.length * 10) / 10;
  9. clippyListener = new Object();
  10. clippyListener.click = function(evt)
  11. {
  12.    play();
  13. };
  14. nextbtn.addEventListener("click",clippyListener);
  15. misses = shots - hits;
  16. accuracy = int(hits / shots * 100) + "%";
  17. stop();
  18.