home *** CD-ROM | disk | FTP | other *** search
/ Ghost Rider iactivecard / Ghost Rider iactivecard.iso / pc / main.swf / scripts / frame_568 / DoAction_2.as next >
Encoding:
Text File  |  2007-04-10  |  552 b   |  15 lines

  1. function getTheTime()
  2. {
  3.    var _loc2_ = new Date();
  4.    var _loc4_ = _loc2_.getMonth() + 1 + "-" + _loc2_.getDate() + "-" + _loc2_.getFullYear();
  5.    timenow = new Date();
  6.    hours_txt = timenow.getHours();
  7.    var _loc1_ = timenow.getMinutes();
  8.    minutes_txt = _loc1_ >= 10 ? _loc1_ : "0" + _loc1_;
  9.    var _loc3_ = int(timenow.getSeconds());
  10.    seconds_txt = _loc3_ >= 10 ? _loc3_ : "0" + _loc3_;
  11.    return _loc4_ + "_" + timenow.getHours() + ":" + (_loc1_ >= 10 ? _loc1_ : "0" + _loc1_);
  12. }
  13. currentDate = getTheTime();
  14. trace(currentDate);
  15.