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

one shared object among multiple applications

Explorer ,
May 24, 2014 May 24, 2014

How would I enable a shared object to be used by more than one game? I have tried doing SharedObject.getLocal("ID","/"), but they still seem to have seperate shared objects, both of these applications have seperate domains (com.domain.app).

TOPICS
ActionScript
525
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 ,
May 24, 2014 May 24, 2014

if they're on different domains, they can't use the same sharedobject.  you should use server side files to store user data.

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 ,
May 25, 2014 May 25, 2014

So if I were to change the domains to be: com.mydomain.game117, and com.mydomain.game2245, it would work?

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 ,
May 25, 2014 May 25, 2014

try it.  but i suspect those will look like different domains.

you could use:

com.mydomain.games/game117 for your game117's main swf

and

com.mydomain.games/game2245 for your game2245's main swf

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 ,
May 25, 2014 May 25, 2014

I can't have both of the domains set to the same thing, I am going to be publishing them to the Google Play Store.

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 ,
May 25, 2014 May 25, 2014
LATEST

different domains->different sharedobjects.

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