Skip to main content
Participating Frequently
February 13, 2011
Answered

Linking to XML

  • February 13, 2011
  • 1 reply
  • 470 views

How can I save and load the variable 'score' to and from an xml file so that I can reload the same the score again later as a 'highscore'.

This topic has been closed for replies.
Correct answer Ned Murphy

Flash cannot save files, so you will need to have some other means of doing that, such as PHP.

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
February 13, 2011

Flash cannot save files, so you will need to have some other means of doing that, such as PHP.

APW93Author
Participating Frequently
February 13, 2011

ok, so what code can I use on both the as3 and php?

Ned Murphy
Legend
February 13, 2011

You'll need a tutorial to get you thru that request.  Try searching Google for a tutorial using search terms like "AS3 PHP save XML"  I'm sure you will find something useful, and if you have problems with implementing it, then post your specfic problems along with the relevant code that is not working.