-
i was just wondering... is there a script able to erase completely save states in flash? save states are .sol files...
for example, with my game (rocky), i really want at the start-up screen, to be able either to continue from the save point (what i have so far), either to be able to erase it and begining a new game (what i want to implement).
do you have ideas?
thanks
-
Just set whatever bits of the cookie the swf uses to tell if the save has been made, and set them to null, or whatever depending on your code.
-
Along the same lines, where are the .sol files stored on the HD?
Cheers,
-
That doesn't matter, flash can't delete them that way. Just null the contents of the shared object (ie. so = null).
-
I know Ed, i was just interested in finding them, see if they are encoded and whatnot or freely viewable and editable like cookies..
-
thanks. i'll try it when i'll return home.
-
Yes, but you could just do one of these:
var so=SharedObject.getLocal("somthing");
so.data = null;
so.flush();
or
var so=SharedObject.getLocal("somthing");
delete so.data;
so.flush();