Deleting Shared objects?

Hi there!
I’d like to know if there’s any way to delete a shared object from the HDD through AS or to set all of its properties to null or undefined. The documentation says: “If null or undefined is assigned to an attribute, Macromedia Flash MX deletes the attribute.”, but this is for an attribute. I’d like to delete the shared object itself and be able to create a new one…

I’ve tried: MyObject.data.MyVariable = null; and when I trace the attribute’s value later in my movie, it still has the first value I entered for it !!. No deletion occurs!

Is there an easy way to do so ?

 Thanks in advance,
             Spongebob

Howdy…

I haven’t tried it… But I THINK you cannot delete the Shared Object because of the security reasons… Why not reset everything in the Shared Object to null??? I think this should be almost the same thing as deleting one… :wink: Just a thought…

Yes! That’s what I thought and I did it… but when I trace one of the attribute’s value (previously deleted) later in the movie it has a value! and it should read undefined!

Anyone knows why ??
Thank you very much!
Regards,
Spongebob

Well… I don’t remember there were issues with deleting in the Shared Object… Not much I can do with given information… So, I guess you will have to check your code again… Show us what you have if you want… :wink:

according to this tech note, you can delete shared objects, but im not sure what the script looks like

http://www.macromedia.com/support/flash/action_scripts/local_shared_object/index.html

cheers