Skip to main content
Inspiring
March 24, 2015
Question

Help for Score

  • March 24, 2015
  • 1 reply
  • 274 views

How can this by storing a value of a dynamic text in a database? I have in mind try to make a tactical records, where you will not need to present many made records, only the highest. Can anyone help me?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
March 24, 2015

are you trying to compare different users' scores?  if yes, you'll need to use a server to store the data.

if no, you can use the flash sharedobject.

vvvverTAuthor
Inspiring
March 24, 2015

I'm not looking to buy the score of each player. The goal is how I save only the highest score by a player. In the case, it would only save the highest score.

Not sure if this would be a comparison, but this would be the goal.

kglad
Community Expert
Community Expert
March 24, 2015

use the sharedobject:

var so:SharedObject=new SharedObject('highscore','/');

if(!so.data.highscore || currentscore>so.data.highscore){

so.data.highscore=currentscore;

}