Skip to main content
BladePoint
Inspiring
August 18, 2013
Question

Manual deletion of shared object problem

  • August 18, 2013
  • 1 reply
  • 800 views

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?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
August 18, 2013

what code uses MySaves?

BladePoint
Inspiring
August 18, 2013

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.

kglad
Community Expert
Community Expert
August 18, 2013

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.