-
1. Re: SharedObject issue - help, please!
Rothrock Nov 12, 2009 5:34 PM (in response to Ziggizag)Yup. By default a SO is "owned" by the file that created it. If you check the documentation for getLocal() you will see that you can give it a path argument that will expand which swfs (on your own domain) can access the SO.
-
2. Re: SharedObject issue - help, please!
Ziggizag Nov 13, 2009 2:53 AM (in response to Rothrock)Thank you very much for this prompt answer. Actually - documentation Adobe provided on the subject is less than informative. But indeed, the optional "path" parameter does the job.
Rgs,
Ziggi
-
3. Re: SharedObject issue - help, please!
Rothrock Nov 13, 2009 7:27 AM (in response to Ziggizag)Glad you worked it out. I had only remembered what I read in the AS2 documentation, but I just checked out the AS3 documentation and it seems prety clear to me (I added the emphasis):
Although the
localPathparameter is optional, you should give some thought to its use, especially if other SWF files need to access the shared object. If the data in the shared object is specific to one SWF file that will not be moved to another location, then use of the default value makes sense. If other SWF files need access to the shared object, or if the SWF file that creates the shared object will later be moved, then the value of this parameter affects how accessible the shared object will be. For example, if you create a shared object withlocalPathset to the default value of the full path to the SWF file, no other SWF file can access that shared object. If you later move the original SWF file to another location, not even that SWF file can access the data already stored in the shared object.To avoid inadvertently restricting access to a shared object, use the
localpathparameter. The most permissive approach is to setlocalPathto/(slash), which makes the shared object available to all SWF files in the domain, but increases the likelihood of name conflicts with other shared objects in the domain. A more restrictive approach is to appendlocalPathwith folder names that are in the full path to the SWF file. For example, for aportfolioshared object created by the SWF file at www.myCompany.com/apps/stockwatcher.swf, you could set thelocalPathparameter to/,/apps, or/apps/stockwatcher.swf. You must determine which approach provides optimal flexibility for your application.The trick is it is up near the top, not in the part where it describes the optional path parameter!


