I have a SharedObject in which I’m saving some data in a flash app. I’m trying to remove some saved data but it doesn’t work.
trace(delete(localData.data[key]));
The delete command returns true, but when I reload the data it looks it was not deleted.
As of now the best solution was to “localData.clear();” all the data and then to save it without the fields I want to remove.
You need to call the flush() method to “commit” your changes:
More info here: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/SharedObject.html#flush()