Save Variables?

I want to know how to save some variable values into a local machine… as for example a save button. Then the user plays the movie again the variables show up as he left them. I think this is done by SharedObject or something like that… can anyone help me?