A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: erase .sol files...?

  1. #1
    DOT-INVADER marmotte's Avatar
    Join Date
    May 2002
    Location
    Dot-Switzerland
    Posts
    2,601
    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

  2. #2
    Gross Pecululatarian Ed Mack's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    2,954
    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.

  3. #3
    Senior Member random10122's Avatar
    Join Date
    Mar 2002
    Location
    Sheffield, UK
    Posts
    1,747
    Along the same lines, where are the .sol files stored on the HD?

    Cheers,

  4. #4
    Gross Pecululatarian Ed Mack's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    2,954
    That doesn't matter, flash can't delete them that way. Just null the contents of the shared object (ie. so = null).

  5. #5
    Senior Member random10122's Avatar
    Join Date
    Mar 2002
    Location
    Sheffield, UK
    Posts
    1,747
    I know Ed, i was just interested in finding them, see if they are encoded and whatnot or freely viewable and editable like cookies..

  6. #6
    DOT-INVADER marmotte's Avatar
    Join Date
    May 2002
    Location
    Dot-Switzerland
    Posts
    2,601
    thanks. i'll try it when i'll return home.

  7. #7
    Gross Pecululatarian Ed Mack's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    2,954
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center