当我退出 Flash 应用程序时,swf 地址不起作用
我使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将trace() 语句放入SWFAddressEvent CHANGE 事件的处理程序中。您希望在重新进入 Flash 站点时跟踪深层链接的价值。当您重新进入站点时,该处理程序可能不会触发。
当您重新进入站点时,整个 flash swf 文件必须重新加载。确保站点初始化时,它会设置 SWFAddress CHANGE 事件的处理程序:
详细示例如下:
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.
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:
A detailed example is here:
http://oreilly.com/flash/excerpts/seo-for-flash/using-swfaddress-flex.html