Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用过 SWFAddress,但它似乎充满了怪癖,并没有在所有浏览器中完全实现。我不一定需要深度链接,而我只需要在他通过 Flash 应用程序旅行时跟踪用户历史记录(用户留在应用程序中)。
有什么建议、设计模式建议、代码示例吗?
我有类似的东西,我使用数组/向量来追踪它们的路径。
我为 Flash 文件的每个部分分配了一个代码(例如“Section-1”或“Section-name”),然后将其添加到数组中。
var playerPath = new Array(); // when they get to the new section playerPath.push("Section-name");
当他们后退一步时,我只需删除最后一项。
playerPath.pop();