A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: How to delete shared object of entire project?

  1. #1
    Senior Member
    Join Date
    Nov 2000
    Posts
    237

    How to delete shared object of entire project?

    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.

    any idea..?
    :: If you judge the people, you have no time to love them. ::

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    If the shared objects are all in a different folder, you need to delete them individually. clear() is the method.

    var my_so:SharedObject = SharedObject.getLocal ("kookie");
    if (my_so.data != null)
    {
    my_so.clear ();
    }
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Senior Member
    Join Date
    Nov 2000
    Posts
    237
    no...all swfs are placed in same folder. but they are opening in individual html files. and I am not able to delete shared object of all swfs.
    :: If you judge the people, you have no time to love them. ::

  4. #4
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Even they are in the same folder, you need to delete each one individually, because they have different names. Check where they are located on your harddrive.
    - The right of the People to create Flash movies shall not be infringed. -

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