If you are trying to understand how the SharedObject works with Flash CS3, follow this tutorial and you will soon know a lot more about this topic.
The ShareObject class is used to read or ‘store’ data on the user’s computer. To understand better, an easy comparison for the SharedObject would be the browser’s cookies.
This class is very useful and used a lot in game’s development.
I will make an example.
Let us say that we developed a game with Flash CS3. The user will need to insert its own details so to be able to store his score and his name. If the user would want to play more games, he would often be annoyed by the fact of having to enter his details once again at each game.
Instead, using the SharedObject class, our user could play as many games as he wants, entering once his personal details which would be memorized in a file by Flash and kept in the user’s computer.
The following example will ask you to insert your name, city and age. Once ‘SALVA’ clicked, Flash will save those data on your computer. If you do a refresh at that point, you will see that Flash has retrieved your details successfully.
You can also delete your details and this time, after a page refresh, you will be asked to enter your details once again.
Follow me…






