//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);
答案 0 :(得分:0)
你必须declare
SupernaturalHighScores:
var SupernaturalHighScores:SharedObject = SharedObject.getLocal("SPNHighScores");