Copy link to clipboard
Copied
I am working on adding saving and loading through SharedObject. I create it using:
var saveObject:SharedObject;
saveObject = SharedObject.getLocal("saveFile");
When I close and then re-test my game the saveObject is still null. I went into check if the file was created but it fails to create the .sol file. It goes as far as:
C:\Users\name\AppData\Roaming\Macromedia\Flash Player\#SharedObjects\2Z8NDU4S\localhost\Users\name\Desktop\FlashGames
I have another game that saves the same way and is working fine. The name for this save file is not the same as the one I am trying to make now. the path for this .sol file is:
C:\Users\name\AppData\Roaming\Macromedia\Flash Player\#SharedObjects\2Z8NDU4S\localhost\Users\name\Desktop\FlashGames\SaveAndLoadWorking\Saving and Loading.swf
I have no idea what I am doing wrong. Any help is appreciated
Copy link to clipboard
Copied
UPDATE**
Was trying to add this to a another version oof my game in an attempt to not destroy my original. After having no luck I tried on my original and it worked fine. Still looking forward to understanding why this happened in case I run into this problem again
Copy link to clipboard
Copied
Read the passage about how to properly flush your SO:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/SharedObject.html
Find more inspiration, events, and resources on the new Adobe Community
Explore Now