Reading dataTo retrieve data from a saved Shared Object, just use the following syntax:
stored_user_name = local_data.data.user_name; stored_user_age = local_data.data.user_age;Don't forget that you still have to create the local_data shared object first. Now, the user's name is stored in a variable called "stored_user_name" and the user's age in the variable "stored_user_age"and you can use it anywhere in your movie.
You can store more information in one Shared Object file in the same way.
Similar to the way how we have saved simple text variables you can store whole arrays and other objects.
|» Level Intermediate|
Rating: 8 Votes: 52
|Download the files used in this tutorial.|
|Download (28 kb)|
|More help? Search our boards for quick answers!|