• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 9. Controlling Information Flow > Storing and Sharing Information

Storing and Sharing Information

Although variables enable you to keep track of information, they do so only within a single playing of a Flash movie. When your viewer quits the movie, all the information in variables is lost. When the viewer returns to the movie, the variables are again initialized to their starting values with set variable commands or are loaded from external sources.

You can have Flash remember the current values of your variables even after a viewer quits the movie, however. The solution is to use SharedObjects. SharedObjects save information on a viewer’s computer, much as browsers save information in cookies. When a viewer returns to a movie that has saved a SharedObject, that object can be loaded back in, and the variables from the previous visit can be used.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint