当我退出 Flash 应用程序时,swf 地址不起作用

发布于 2024-12-26 02:45:52 字数 299 浏览 4 评论 0原文

我使用 swfAddress 2.4 进行浏览器导航,只要我停留在 Flash 网站中,一切(浏览器中的来回按钮)都可以正常工作,但是当我使用后退按钮最终退出时网站,然后使用第四个按钮返回,它只会将我带到网站的主页,而不是点击后退按钮之前我在网站中的最后一页。看起来我一退出 Flash 应用程序就丢失了页面的历史记录。

当我退出 Flash 应用程序并想返回时,如何使 swfAddress 的浏览器导航正常工作? 页面的历史记录

并且仍然保留我正在使用 flash builder 和 flex 4.1 的 谢谢

I am using swfAddress 2.4 for browser navigation and everything (back and forth button in the browser) works fine as long as I stay in my flash website, but when I use back button eventually to go out of the website and then use the forth button to come back , it just takes me to the home page of my website, instead of the last page I was in my website before I hit the back button. it looks like I loose the history of my pages as soon as I go out of my flash application.

how can I make the browser navigation with swfAddress works when I go out of my flash application and want to comeback to that? and still have the history of my pages

I am working with flash builder , and flex 4.1
thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

还如梦归 2025-01-02 02:45:52

将trace() 语句放入SWFAddressEvent CHANGE 事件的处理程序中。您希望在重新进入 Flash 站点时跟踪深层链接的价值。当您重新进入站点时,该处理程序可能不会触发。

private function handleSWFAddress():void
{
    var value:String = SWFAddress.getValue();
    trace("value " + value);

}

当您重新进入站点时,整个 flash swf 文件必须重新加载。确保站点初始化时,它会设置 SWFAddress CHANGE 事件的处理程序:

SWFAddress.onChange = handleSWFAddress;

详细示例如下:
http://oreilly.com/flash/excerpts/seo -for-flash/using-swfaddress-flex.html

Put a trace() statement inside the handler for the SWFAddressEvent CHANGE event. You want to trace the value of the deep link when you re-enter the flash site. It could be that this handler isn't firing when you re-enter the site.

private function handleSWFAddress():void
{
    var value:String = SWFAddress.getValue();
    trace("value " + value);

}

When you re-enter the site the whole flash swf file has to reload. Be sure that when the site initialises, it sets up the handler for the SWFAddress CHANGE event:

SWFAddress.onChange = handleSWFAddress;

A detailed example is here:
http://oreilly.com/flash/excerpts/seo-for-flash/using-swfaddress-flex.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文