Hi!, im having a problem, i went online to find out a way to store a highscore locally. I found a flash file wich allowed me to understand some of it, but it doesn't explain to me what i needed (pardon my terrible english)

Code:
soScores = SharedObject.getLocal("flashcookie");
mListener = new Object();
var score = 0;
if (soScores.data.highScore != null)
{
	highScore = soScores.data.highScore;
}
Mouse.addListener(mListener);
mListener.onMouseDown = function()
{
	score++;
	if (score > highScore)
	{
		highScore = score;
		soScores.data.highScore = highScore;
	}
};
Can someone tell me how i could make this in AS3. if its not to advanced.