asdg>> technotes>>
Version: Flash 5, Flash MX As of Flash MX, typed data can be saved locally with a SharedObject instance, as documented in the Language Reference of ASDG2. Do not use fscommand() to store data if you are publishing to Flash Player 6 or later. In Flash 5 it is possible to save variables to a text file using fscommand(). However, this technique: Use at your own risk. With that out of the way, here's how it works. To save the main timeline variables of a movie to a file in the same directory as your .swf file, use: To save to a file using an absolute path, use: For example: Here's a sample movie that shows the technique in action. |