3 Replies Latest reply on Jan 22, 2007 2:11 PM by Newsgroup_User

    How to delete shared object of entire project?

    Milind_K Level 1
      How to delete shared object of entire project?


      Its hybrid project (flash+html), there are total 10 html files which r using shared object.

      I want to clear all the data of all files once I click ‘clear data’ button, this button is html button and in the separate html file (bottom frame).

      This bottom frame also having next and back button which will take you to next/prev html file, so user can revisit all 10 html files and he will get his stored data, but once he click on ‘clear data’ button I want to delete all the shared object.
        • 1. Re: How to delete shared object of entire project?
          Level 7


          Milind K wrote:
          > How to delete shared object of entire project?
          >
          >
          > Its hybrid project (flash+html), there are total 10 html files which r using
          > shared object.
          >
          > I want to clear all the data of all files once I click ?clear data? button,
          > this button is html button and in the separate html file (bottom frame).

          SharedObj_Name.clear();

          clear(); works like purge. It clears all the data from the shared object and
          deletes the shared object from the temporary folders.


          --
          Best Regards

          Urami


          --

          !!!!!!! Merry Christmas !!!!!!!
          &
          Happy New Year


          <urami>
          If you want to mail me - DO NOT LAUGH AT MY ADDRESS
          </urami>
          • 2. Re: How to delete shared object of entire project?
            Milind_K Level 1
            hi urami,

            thanks for reply, in my project, every swf r using same code. i.e.

            sData = SharedObject.getLocal("q1");

            when i used

            sData .clear();

            it is not deleteing the data for entire project.

            • 3. Re: How to delete shared object of entire project?
              Level 7


              Milind K wrote:
              > hi urami,
              >
              > thanks for reply, in my project, every swf r using same code. i.e.
              >
              > sData = SharedObject.getLocal("q1");
              > when i used
              > sData .clear();
              > it is not deleteing the data for entire project.

              Each swf could be writing different *.sol file. Perhaps to access same object
              across multiple files you could try using common substring path.
              It basically allow multiple SWF within same domain or few directories to access
              the same sol file:

              sData = SharedObject.getLocal("q1","/");

              --
              Best Regards

              Urami


              --

              !!!!!!! Merry Christmas !!!!!!!
              &
              Happy New Year


              <urami>
              If you want to mail me - DO NOT LAUGH AT MY ADDRESS
              </urami>