home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Estrategia / scooby.swf / scripts / frame_1 / DoAction_4.as < prev    next >
Encoding:
Text File  |  2006-06-13  |  449 b   |  22 lines

  1. function cTimer()
  2. {
  3.    this.startTime = getTimer();
  4. }
  5. cTimer.prototype.restartTimer = function()
  6. {
  7.    this.startTime = getTimer();
  8. };
  9. cTimer.prototype.milliseconds = function()
  10. {
  11.    return getTimer() - this.startTime;
  12. };
  13. cTimer.prototype.seconds = function()
  14. {
  15.    return this.getSeconds();
  16. };
  17. cTimer.prototype.getSeconds = function()
  18. {
  19.    return int((getTimer() - this.startTime) / 1000);
  20. };
  21. gameMC.iPuzzleTimer = new cTimer();
  22.