-1
//Creates a shared object to hold the users highscores
SupernaturalHighScores = SharedObject.getLocal("SPNHighScores"); 
SupernaturalHighScores.data.Name = "Dean Winchester";
SupernaturalHighScores.data.Score = "200";
SupernaturalHighScores.flush();

trace(SupernaturalHighScores.data.Name);
trace(SupernaturalHighScores.data.Score);
helloflash
  • 2,457
  • 2
  • 15
  • 19
Lewis M Hackfath
  • 131
  • 5
  • 17

1 Answers1

0

You have to declare SupernaturalHighScores:

var SupernaturalHighScores:SharedObject = SharedObject.getLocal("SPNHighScores");
helloflash
  • 2,457
  • 2
  • 15
  • 19