Tutorial: Using Shared Objects
Monday, March 8th, 2010Many people may be unaware that the scripting used by SWiSH Max3 is mostly compatible with Flash AS2 (Action Script 2). This means that even though the Max3 help file does not describe some of the more advanced objects available to AS2, you can still probably use them with Max3. The Max3 help file does detail areas where known differences occur. One interesting object that is not listed in the Max3 documentation is the Shared Object. It allows a Flash movie to save configuration data (depending on configuration settings) to the local computer. This behavior is analogous to cookies in http.
The Shared Object is available with Flash Player 6 and later. Documentation for the Shared Object can be found on the adobe site. The Adobe AS2 script reference can be viewed (and downloaded) in pdf format here.
Shared Objects are like cookies. They are snippets of data created in the SWF which are stored locally on the user’s computer. Other SWF movies (or the original movie, on the same domain) can then retrieve the stored data. This type of data storage is useful to store things like user high scores in games, user configuration options for a website or shopping cart data. (more…)


