0 Replies Latest reply on Nov 27, 2006 6:44 AM by evilgreenmonkey

    crossdomain.xml and SharedObjects

    evilgreenmonkey
      Hi,

      I've got 2 domains and want to share data stored in a SharedObject between them. My crossdomain.xml file is correct although I think my code's missing something. This is the code being loaded through a SWF on domain2.com having already stored "testvar=1" in a "user_data" SharedObject on domain1.com:

      System.security.allowDomain("www.domain1.com");
      System.security.loadPolicyFile(" http://www.domain1.com/crossdomain.xml");
      local_data = SharedObject.getLocal("user_data");
      var bake = local_data.data.testvar;

      The variable "bake" never loads the value of "testvar" though.

      Thanks,

      Rob