Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Help for Score

Explorer ,
Mar 23, 2015 Mar 23, 2015

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?

TOPICS
ActionScript
256
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 24, 2015 Mar 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 24, 2015 Mar 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 24, 2015 Mar 24, 2015
LATEST

use the sharedobject:

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

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

so.data.highscore=currentscore;

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines