will sharedobject data be gone after windows shutdown?
Printable View
will sharedobject data be gone after windows shutdown?
It should persist. It's written to a file on the hard drive, very similar to a cookie.
Hi zerlphr,
You need to use flush (), in order to write on the hard drive
For more information go to http://livedocs.adobe.com/flash/9.0/...t.html#flush()
Code:var SharedData:SharedObject = SharedObject.getLocal("hostName");
// Save Data
SharedData.data.username = "User Name";
SharedData.flush ();
// Get Data
var username:String = SharedData.data.username;
// Delete Data
SharedData.clear ();