5 Replies Latest reply on Jan 18, 2013 11:10 AM by kglad

    Shared Objects: clear() doesn't work!

    Germaris Level 1

      Hi there!

       

      With reference to thread:

      http://forums.adobe.com/message/4923159

       

      It doesn't work anymore!

      i.e. it's impossible to delete and get rid of the identifiers which were previously written on disk...

       

      :-(

       

      Name of the file hasn't changed.

      Directory where the file is hasn't changed either.

      I haven't wrote any statement in my .fla which could interfere with the instructions below.

       

      I still use:

      var so:SharedObject = SharedObject(credentials).getLocal("identifiers", "/");

      so.clear();

       

      I have a CheckBox and a Listener attached to it:

      memorizeCbx.selected;

      var memorizeCbxListener:Object = {};

      memorizeCbxListener.click = function() {

          if (!memorizeCbx.selected) {

              var so:SharedObject = SharedObject(credentials).getLocal("identifiers", "/");

              so.clear();

          }

          else {

              SharedObject(credentials).data.userName.flush;

              SharedObject(credentials).data.userPass.flush;

          }

      };

      memorizeCbx.addEventListener("click",memorizeCbxListener);

       

      Does anybody has an idea about what's going wrong?

       

      I thank you all in advance for any solution.