Actionscript 3 #1120:未充分细化的地产超高核心的访问

Actionscript 3 #1120:未充分细化的地产超高核心的访问,actionscript-3,shared-objects,Actionscript 3,Shared Objects,您必须声明超自然高分: //Creates a shared object to hold the users highscores SupernaturalHighScores = SharedObject.getLocal("SPNHighScores"); SupernaturalHighScores.data.Name = "Dean Winchester"; SupernaturalHighScores.data.Score = "200"; SupernaturalHighScor

您必须
声明
超自然高分:

//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);
var SupernaturalHighScores:SharedObject = SharedObject.getLocal("SPNHighScores");