Shared Objects problem

Heya guys, been stuck with this problem for a bit and could use a few fresh brains to see what I have overlooked.

I’m just trying to store a simple cookie that will remember the score for the next time the user plays the game (the score governs if an option is visible or not)

It all works fine until I close browser/reload the page, at which point the shared object seems to disappear, any clues?

Write:

var rem_score:SharedObject = SharedObject.getLocal("score");
rem_score.data.score = new Number(score);
rem_score.flush();

The problem prolly lies in my write code but ill post the reading aswell just incase there is a problem with that too :slight_smile:

var rem_score:SharedObject = SharedObject.getLocal("score");
if (rem_score.data.score != undefined) {
    this.remdscore = rem_score.data.score;
    if (rem_score.data.score >=30) {
        gallerychk._visible = 1;
    } else {
        gallerychk._visible = 0;
    }
} else {
    this.remdscore = "";
    gallerychk._visible = 0;
}

There is another point it is read but it is the same sort of thing as the above.

Thanks in advance :wink: