Copy link to clipboard
Copied
This is the line of code that creates my shared object:
MySaves = SharedObject.getLocal("MyGames/MySOL","/");
I manually deleted it by going to this folder and deleting the MySOL.sol file and the #MyGames folder that contained it:
C:\Users\<name>\AppData\Roaming\Macromedia\Flash Player\#SharedObjects\<random>\localhost\
Now when I run my Flash, it hangs when it gets to the part where it's supposed to read data from the shared object. Isn't it supposed to create a new .sol file if one doesn't already exist? Strangely it will create the #MyGames folder, but it will be empty. Any ideas?
Copy link to clipboard
Copied
what code uses MySaves?
Copy link to clipboard
Copied
Something like this:
if (MySaves.data.Options == null) {
//use defaults
}
The debugger gives me this:
TypeError: Error #1010: A term is undefined and has no properties.
I would assume that's because there is no MySOL.sol file.
Copy link to clipboard
Copied
click file>publish settings>swf and tick "permit debugging". retest.
which line of code triggers the error? paste that line of code here and include all the so related code above the problematic line.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now