-
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.
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|