A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: How to record and display the time accessed?

  1. #1
    Member
    Join Date
    Dec 2004
    Posts
    59

    How to record and display the time accessed?

    I have an example where I need to record the time of user access a game and then display the time access in a textbox.

    Any help in the shape of tutorial or fla would be appreciated.

    Thanks in advance.

  2. #2
    omglolkthxbye
    Join Date
    Feb 2005
    Posts
    64
    when the game starts:
    starttime = new Date();

    when it ends:
    endtime = new Date();
    timeplaying = endtime - starttime;

    check flash help on the date object for the functions about getting specific values, like seconds, minutes,... out of the timeplaying variable.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center