Skip navigation
AntB90
Currently Being Moderated

Saving textfield input

Apr 8, 2012 5:38 AM

Hey,all.

I posted this question in a different form yesterday but as it's changed I've reposted it with all the info.


I'll explain a little before asking my question ... I've created numerous games which load and unload off a main menu.


The player enters their name on the main menu before playing any games and when the player completes a game I want to save their time (taken to complete the game) and unload this time back into the main menu.


Is there any way of saving the times using AS3 to a word document or something like this? I can't send the times to my website with php because the games will be used within a competition and it all needs to work with the internet.


Any ideas guys?

 
Replies
  • kglad
    72,227 posts
    Jul 21, 2002
    Currently Being Moderated
    Apr 8, 2012 6:43 AM   in reply to AntB90

    you can use a sharedobject to save data to the user's computer:

     

    var so:SharedObject=SharedObject.getLocal("antb90");

    so.data.game1time=whatever;  // to set data.  use an if-statement to check is alredy defined.

    so.flush();

     

     

    .

    .

     
    |
    Mark as:
  • kglad
    72,227 posts
    Jul 21, 2002
    Currently Being Moderated
    Apr 8, 2012 10:36 AM   in reply to AntB90

    check the flash help files, as3 classes, SharedObject. 

     

    there's sample code and more.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points