Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Manual deletion of shared object problem

Explorer ,
Aug 17, 2013 Aug 17, 2013

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?

TOPICS
ActionScript
757
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 17, 2013 Aug 17, 2013

what code uses MySaves?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 17, 2013 Aug 17, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 18, 2013 Aug 18, 2013
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines