Can't get SharedObject to work..
Basically I've created a score counting program in ActionScript 3, and I want to save the points when I close the program. But I don't understand why the code isn't working..
//The cookie
var store_stats:SharedObject = SharedObject.getLocal("store_stats")
stage.addEventListener(Event.ENTER_FRAME, flusher)
function flusher (Evt:Event) {
store_stats.flush();
store_stats.data.player1stats = player1Score;
store_stats.data.player2stats = player2Score;
}
trace(store_stats);
//Game stats
var nummer1:Number = 0;
var nummer2:Number = 0;
var player1Score = 0;
var player2Score = 0;
var isDeuce = false;
var isBattle = false
