Your sharedObject could have a "state" property to identify which section of the site the user is currently interacting with. When the user changes section, update the property. Within a specific section , query the property whenever you need to select what content to display.
Another option could be to set your sharedObject with a unique session identifier when a user enters a specific section of the site, using both localPath and a unique name then clear it when the user leaves the site's section
发布评论
评论(1)
您的共享对象可以有一个“状态”属性来标识用户当前正在与站点的哪个部分进行交互。当用户更改部分时,更新属性。在特定部分中,每当您需要选择要显示的内容时,都可以查询属性。
另一种选择是当用户进入网站的特定部分时,使用 localPath 和唯一名称设置您的共享对象,并使用唯一的会话标识符,然后在用户离开网站的部分时清除它。
请参阅本文以获取更多信息关于设置名称和本地路径:
http://jaycsantos.com/flash/the-trick-to-using -共享对象/
Your sharedObject could have a "state" property to identify which section of the site the user is currently interacting with. When the user changes section, update the property. Within a specific section , query the property whenever you need to select what content to display.
Another option could be to set your sharedObject with a unique session identifier when a user enters a specific section of the site, using both localPath and a unique name then clear it when the user leaves the site's section
Have a look at this article for more info on setting a name & a localPath:
http://jaycsantos.com/flash/the-trick-to-using-sharedobject/