开发者

Best(simplest) method or framework to track user's history in Flash

开发者 https://www.devze.com 2023-01-08 00:02 出处:网络
I\'ve used SWFAddress, but it seems full of quirks, and not fully implemented in all browsers. I don\'t necessarilly need deep linking, rather I simply need to track a users history as he she travels

I've used SWFAddress, but it seems full of quirks, and not fully implemented in all browsers. I don't necessarilly need deep linking, rather I simply need to track a users history as he she travels thru a flash application (user stays in application).

Any suggestions, 开发者_运维知识库desgin pattern recommendations, code examples?


I had something similar and I used an array/vector to trace their path.

Each section of my flash file I assigned a code (say, "Section-1" or "Section-name") and I would add it to the array.

var playerPath = new Array();

// when they get to the new section

playerPath.push("Section-name");

When they go back a step I just remove the last item.

playerPath.pop();
0

精彩评论

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