开发者

AS3 shared objects that can be accessed by swfs on different html pages?

开发者 https://www.devze.com 2022-12-09 07:27 出处:网络
Is there a way to make a shared object that can be accessed by two different swf files on two different web pages? It works locally but when not when I upload the files to a server. How else can two s

Is there a way to make a shared object that can be accessed by two different swf files on two different web pages? It works locally but when not when I upload the files to a server. How else can two swfs share开发者_运维问答 information, without a database? I'm trying to have a settings panel on one page, and have all other flash files access the settings. Thanks!


Check out the localPath parameter of SharedObject.getLocal():

The most permissive approach is to set localPath to / (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.

0

精彩评论

暂无评论...
验证码 换一张
取 消