如何使用 SWFObject 在 HTML 中嵌入 Flash 文件(并让深度链接发挥作用!)
我有一个问题,几天来我一直在努力解决! 使用 SWFObject 嵌入后,我似乎没有获得 BrowserManager.url 属性! 目的是获取嵌入 SWF 文件的 HTML 的 URL,而不是获取 swf 文件本身所在的 URL!
说明:
我的意思是 SWF 文件仅位于根目录中,并且该文件嵌入在网站的许多页面中。每次加载Flash文件时,它都需要知道它到底是在哪个页面上被调用的! 如果你能帮助我那就太好了! 干杯 阿里
I have a problem that I have been trying to solve since days!
I don't seem to get the BrowserManager.url property after I embed using SWFObject!
the purpose is, to get the URL of the HTML where the SWF file is embedded and not where the swf file itself is!
explanation:
I mean the SWF file is only in the root, and the file is embedded in many pages on the website. Every time the flash file is loaded, it needs to know on which page exactly it has been called!
would be great if you could help me!
cheers
Ali
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
更好的方法是使用ExternalInterface:
您需要确保将allowscriptaccess设置为始终,如下所示:
Best,
Zach
The better way to do this is to use ExternalInterface:
You'll need to make sure that you have allowscriptaccess set to always, like so:
Best,
Zach