|
-
DOT-INVADER
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
-
Gross Pecululatarian
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.
-
Senior Member
Along the same lines, where are the .sol files stored on the HD?
Cheers,
-
Gross Pecululatarian
That doesn't matter, flash can't delete them that way. Just null the contents of the shared object (ie. so = null).
-
Senior Member
I know Ed, i was just interested in finding them, see if they are encoded and whatnot or freely viewable and editable like cookies..
-
DOT-INVADER
thanks. i'll try it when i'll return home.
-
Gross Pecululatarian
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();
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|