Skip to main content
Inspiring
May 25, 2014
Question

one shared object among multiple applications

  • May 25, 2014
  • 1 reply
  • 598 views

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).

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
May 25, 2014

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

Inspiring
May 25, 2014

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

kglad
Community Expert
Community Expert
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