Hello,
I have an issue with a Shared Object class. I am not new to actionscript, I already made quite a few games in the past, but this is my first time using a Shared Object. We’re using it as a savegame feature in our latest project.
I use it like this:
var savingthis =arrayOfStuff.slice();
saveAll.data.arrayOfStuff = savingthis
And after repeating this with basically all the content that needs to be saved, I flush() it.
saveAll.flush ();
Now this seems to work quite dandily, but after some time, approx. 20 minutes of playing, it doesn’t save anything except a few variables anymore. The same stuff that had been saved before isn’t being saved now. Basically, at this point, the flushing has probably been used 10 times.
I wondered, if perhaps the Shared Object could be like, “full” or something, but then I thought, that with flushing, I’m overwriting old stuff, so the “size” and amount of data doesn’t increase that much.
Are there any restrictions regarding the size of saved data? And is it a possible solution to create several Shared Objects like
saveAll = SharedObject.getLocal("firstSave");
saveAll2 = SharedObject.getLocal("secondSave");
and then split data?
This is a pretty huge game and there is plenty of stuff to save, but it’s like, everytime it is saved, it’s roughly the same amount of data and when I overwrite the Shared Object (by flush()), the data shouldn’t be increasing.
Thanks!