I'm trying to get a local highscore working as well, and I looked at the 2 tutorials.
This is my capx:slurp.capx
and this is the event code excerpt:
The "WebStorage: Set local key..." doesn't seem to work (or I'm using it in the wrong way).
The variable "highscores" is my global variable that contains all the highscores, concatenated so that I can draw single pieces out using "tokenat".
"savedHighscores" is supposed to be the key for the cookie storage.
As you can see, I have a "debugText" textbox where I print some things for debugging. When I debug-print my own global value "highscores", the correct concatenation is being displayed (this line is set to "toggle disabled" in the screenshot).
But when I put the key "savedHighscores" into the debug text, then nothing shows, it's empty.
What am I doing wrong?Aeris852012-09-08 18:05:29